mirror of
https://github.com/redis/go-redis.git
synced 2025-12-02 06:22:31 +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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user