Use package logger.

This commit is contained in:
Vladimir Mihailenco 2016-03-02 13:37:28 +02:00
parent 78d40d5bd7
commit 73ad84252c
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }