1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-03 18:31:14 +03:00

fix: log depth for almost all log messages

An issue will remain for direct calls to internal.Logger.Printf, as the
call depth cannot be adjusted there without changing the function signature.
This commit is contained in:
ccoVeille
2025-11-19 17:24:09 +01:00
parent 5842b1fa32
commit 4be3d3a7ae

View File

@@ -19,7 +19,7 @@ type DefaultLogger struct {
} }
func (l *DefaultLogger) Printf(ctx context.Context, format string, v ...interface{}) { func (l *DefaultLogger) Printf(ctx context.Context, format string, v ...interface{}) {
_ = l.log.Output(2, fmt.Sprintf(format, v...)) _ = l.log.Output(4, fmt.Sprintf(format, v...))
} }
func NewDefaultLogger() Logging { func NewDefaultLogger() Logging {