mirror of
https://github.com/redis/go-redis.git
synced 2025-07-19 11:43:14 +03:00
Move logger to internal package.
This commit is contained in:
3
tx.go
3
tx.go
@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"gopkg.in/redis.v4/internal"
|
||||
"gopkg.in/redis.v4/internal/pool"
|
||||
)
|
||||
|
||||
@ -58,7 +59,7 @@ func (tx *Tx) process(cmd Cmder) {
|
||||
func (tx *Tx) Close() error {
|
||||
tx.closed = true
|
||||
if err := tx.Unwatch().Err(); err != nil {
|
||||
Logger.Printf("Unwatch failed: %s", err)
|
||||
internal.Logf("Unwatch failed: %s", err)
|
||||
}
|
||||
return tx.base.Close()
|
||||
}
|
||||
|
Reference in New Issue
Block a user