diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-21 11:04:12 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-21 11:04:12 -0700 |
| commit | 76698522419902303117d3f736a619b8c01c60f4 (patch) | |
| tree | cfdfc56ba4d5ed4247134a2d4421edfc70c78d5b /weed/util/lock_table_test.go | |
| parent | e3b1bacf3fa0467d836ccd5ed0096146f2afbb07 (diff) | |
| download | seaweedfs-76698522419902303117d3f736a619b8c01c60f4.tar.xz seaweedfs-76698522419902303117d3f736a619b8c01c60f4.zip | |
adjust logs
Diffstat (limited to 'weed/util/lock_table_test.go')
| -rw-r--r-- | weed/util/lock_table_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/util/lock_table_test.go b/weed/util/lock_table_test.go index f9037559c..272e5672f 100644 --- a/weed/util/lock_table_test.go +++ b/weed/util/lock_table_test.go @@ -1,7 +1,6 @@ package util import ( - "fmt" "math/rand" "sync" "testing" @@ -27,14 +26,14 @@ func TestOrderedLock(t *testing.T) { lock := lt.AcquireLock("", key, lockType) // Lock acquired, perform some work - fmt.Printf("ActiveLock %d acquired the lock.\n", lock.ID) + glog.V(4).Infof("ActiveLock %d acquired the lock.\n", lock.ID) // Simulate some work time.Sleep(time.Duration(rand.Int31n(10)*10) * time.Millisecond) // Release the lock lt.ReleaseLock(key, lock) - fmt.Printf("ActiveLock %d released the lock.\n", lock.ID) + glog.V(4).Infof("ActiveLock %d released the lock.\n", lock.ID) }(i) } |
