diff --git a/pkg/common/log/zap.go b/pkg/common/log/zap.go index ae018d865..32986d029 100644 --- a/pkg/common/log/zap.go +++ b/pkg/common/log/zap.go @@ -101,6 +101,7 @@ func (l *ZapLogger) cores(isStdout bool, isJson bool, logLocation string, rotate c.MessageKey = "msg" c.LevelKey = "level" c.TimeKey = "time" + c.CallerKey = "caller" var fileEncoder zapcore.Encoder if isJson {