1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00
This commit is contained in:
Vladimir Mihailenco
2019-06-17 12:32:40 +03:00
parent aa5f492665
commit 3bdf64784a
8 changed files with 77 additions and 89 deletions

View File

@ -4,7 +4,6 @@ import (
"context"
"fmt"
"log"
"os"
"time"
"github.com/go-redis/redis/internal"
@ -15,10 +14,6 @@ import (
// Nil reply Redis returns when key does not exist.
const Nil = proto.Nil
func init() {
SetLogger(log.New(os.Stderr, "redis: ", log.LstdFlags|log.Lshortfile))
}
func SetLogger(logger *log.Logger) {
internal.Logger = logger
}