Skip to content

Commit

Permalink
Test logger should also output log fields
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantv committed Mar 31, 2016
1 parent e71b135 commit 094b0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testutils/logger.go
Expand Up @@ -107,7 +107,7 @@ func (l testLogger) Enabled(level tchannel.LogLevel) bool {
}

func (l testLogger) log(prefix string, msg string) {
logLine := fmt.Sprintf("%s [%v] %v\n", time.Now().Format("15:04:05.000000"), prefix, msg)
logLine := fmt.Sprintf("%s [%v] %v %v\n", time.Now().Format("15:04:05.000000"), prefix, msg, l.Fields())
l.w.withLock(func(w *bytes.Buffer) {
w.WriteString(logLine)
})
Expand Down

0 comments on commit 094b0da

Please sign in to comment.