1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

follow to golang-lint 1.40

Signed-off-by: monkey <golang@88.com>
This commit is contained in:
monkey
2021-05-13 10:33:38 +08:00
parent 7d319aeb57
commit 26373ef2f1
5 changed files with 9 additions and 2 deletions

View File

@ -19,6 +19,8 @@ func (l *logger) Printf(ctx context.Context, format string, v ...interface{}) {
_ = l.log.Output(2, fmt.Sprintf(format, v...))
}
// Logger calls Output to print to the stderr.
// Arguments are handled in the manner of fmt.Print.
var Logger Logging = &logger{
log: log.New(os.Stderr, "redis: ", log.LstdFlags|log.Lshortfile),
}