@cryptotaxi247 / kubo / commits / 0f6a2e277

feat(eventlog) use the polite json formatter

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 16, 2014 at 06:03 UTC 0f6a2e27789b49c96ab397c11b5cfa63e82bf4af
1 file changed +2 -2
util/eventlog/option.go
+2 -2
@@ -3,8 +3,8 @@ package eventlog
3 import (
4 "io"
5
6 - "github.com/jbenet/go-ipfs/Godeps/_workspace/src/gopkg.in/natefinch/lumberjack.v2"
6 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/maybebtc/logrus"
7 + "github.com/jbenet/go-ipfs/Godeps/_workspace/src/gopkg.in/natefinch/lumberjack.v2"
8 )
9
10 type Option func()
@@ -17,7 +17,7 @@ func Configure(options ...Option) {
17
18 // LdJSONFormatter formats the event log as line-delimited JSON
19 var LdJSONFormatter = func() {
20 - logrus.SetFormatter(&logrus.JSONFormatter{})
20 + logrus.SetFormatter(&logrus.PoliteJSONFormatter{})
21 }
22
23 var TextFormatter = func() {