summaryrefslogtreecommitdiffstats
path: root/mlog/log.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-30 08:18:04 -0700
committerGitHub <noreply@github.com>2018-04-30 08:18:04 -0700
commit9c5815ee41f29e27774d17382d9a4bd10d208545 (patch)
tree698f38053a5f34e337c6750f95b909028a1649dc /mlog/log.go
parent2f175001b45fb282600e4a9aee3c8a79fc682821 (diff)
downloadchat-9c5815ee41f29e27774d17382d9a4bd10d208545.tar.gz
chat-9c5815ee41f29e27774d17382d9a4bd10d208545.tar.bz2
chat-9c5815ee41f29e27774d17382d9a4bd10d208545.zip
Add stdlog interpreter. (#8691)
Diffstat (limited to 'mlog/log.go')
-rw-r--r--mlog/log.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlog/log.go b/mlog/log.go
index 801030c6c..22db0c7b1 100644
--- a/mlog/log.go
+++ b/mlog/log.go
@@ -119,7 +119,7 @@ func (l *Logger) With(fields ...Field) *Logger {
}
func (l *Logger) StdLog(fields ...Field) *log.Logger {
- return zap.NewStdLog(l.With(fields...).zap)
+ return zap.NewStdLog(l.With(fields...).zap.WithOptions(getStdLogOption()))
}
func (l *Logger) Debug(message string, fields ...Field) {