日志修正
This commit is contained in:
parent
938441ee3e
commit
5a3f4ec0a1
|
@ -65,7 +65,7 @@ func newLogger() *zap.Logger {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return zap.New(cores, zap.AddCaller())
|
return zap.New(cores, zap.AddCaller(), zap.AddCallerSkip(1))
|
||||||
}
|
}
|
||||||
|
|
||||||
func getWriter(filename string, times int32) io.Writer {
|
func getWriter(filename string, times int32) io.Writer {
|
||||||
|
|
Loading…
Reference in New Issue