aboutsummaryrefslogtreecommitdiff
path: root/weed/wdclient/exclusive_locks/exclusive_locker.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-16 22:26:58 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-16 22:26:58 -0800
commit6c9156b25f8b1c28fb0cc909310a20aeeec0e087 (patch)
tree343e30d98e46a081aa57adfc334b807d0b3255dc /weed/wdclient/exclusive_locks/exclusive_locker.go
parent9add554feb53706d1d878cc9636d234e622b8a80 (diff)
downloadseaweedfs-origin/logrus.tar.xz
seaweedfs-origin/logrus.zip
switch to logrusorigin/logrus
losing filename and line number. Critical for debugging.
Diffstat (limited to 'weed/wdclient/exclusive_locks/exclusive_locker.go')
-rw-r--r--weed/wdclient/exclusive_locks/exclusive_locker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/wdclient/exclusive_locks/exclusive_locker.go b/weed/wdclient/exclusive_locks/exclusive_locker.go
index d477a6b2d..b10168ea5 100644
--- a/weed/wdclient/exclusive_locks/exclusive_locker.go
+++ b/weed/wdclient/exclusive_locks/exclusive_locker.go
@@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"
- "github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/util/log"
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
"github.com/chrislusf/seaweedfs/weed/wdclient"
)
@@ -91,7 +91,7 @@ func (l *ExclusiveLocker) RequestLock() {
}
return err
}); err != nil {
- glog.Errorf("failed to renew lock: %v", err)
+ log.Errorf("failed to renew lock: %v", err)
return
} else {
time.Sleep(RenewInteval)