Skip to content

Commit

Permalink
fix: empty message in default logging (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksusonic authored Aug 18, 2024
1 parent 2bcb9bc commit 4d85a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func GinzapWithConfig(logger ZapLogger, conf *Config) gin.HandlerFunc {
}
} else {
if zl, ok := logger.(*zap.Logger); ok {
zl.Log(conf.DefaultLevel, "", fields...)
zl.Log(conf.DefaultLevel, path, fields...)
} else if conf.DefaultLevel == zapcore.InfoLevel {
logger.Info(path, fields...)
} else {
Expand Down

0 comments on commit 4d85a5c

Please sign in to comment.