From ca9493dc537aa9eb044a22e3eb0d151697dbe111 Mon Sep 17 00:00:00 2001 From: Mohan Raj Rajamanickam Date: Tue, 14 Feb 2017 16:37:12 -0800 Subject: [PATCH] Fix quoted key field in Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 640cf61..5c42e3a 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ application or parts of one. For example, you may want to always log the every line, you can create a `logrus.Entry` to pass around instead: ```go -requestLogger := log.WithFields(log.Fields{"request_id": request_id, user_ip: user_ip}) +requestLogger := log.WithFields(log.Fields{"request_id": request_id, "user_ip": user_ip}) requestLogger.Info("something happened on that request") # will log request_id and user_ip requestLogger.Warn("something not great happened") ```