forked from mirror/redis
Use package logger.
This commit is contained in:
parent
78d40d5bd7
commit
73ad84252c
4
redis.go
4
redis.go
|
@ -27,14 +27,14 @@ func (c *baseClient) putConn(cn *conn, err error) bool {
|
||||||
if isBadConn(err) {
|
if isBadConn(err) {
|
||||||
err = c.connPool.Remove(cn, err)
|
err = c.connPool.Remove(cn, err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("pool.Remove failed: %s", err)
|
Logger.Printf("pool.Remove failed: %s", err)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
err = c.connPool.Put(cn)
|
err = c.connPool.Put(cn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("pool.Put failed: %s", err)
|
Logger.Printf("pool.Put failed: %s", err)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue