Skip to content

Commit 4d85a5c

Browse files
authored
fix: empty message in default logging (#79)
1 parent 2bcb9bc commit 4d85a5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func GinzapWithConfig(logger ZapLogger, conf *Config) gin.HandlerFunc {
114114
}
115115
} else {
116116
if zl, ok := logger.(*zap.Logger); ok {
117-
zl.Log(conf.DefaultLevel, "", fields...)
117+
zl.Log(conf.DefaultLevel, path, fields...)
118118
} else if conf.DefaultLevel == zapcore.InfoLevel {
119119
logger.Info(path, fields...)
120120
} else {

0 commit comments

Comments
 (0)