aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/lookup_vid_cache.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-05-22 09:54:31 -0700
committerchrislu <chris.lu@gmail.com>2025-05-22 09:54:31 -0700
commit0d62be44846354c3c37b857028297edd4b8df17b (patch)
treec89320a7d58351030f1b740c7267f56bf0206429 /weed/operation/lookup_vid_cache.go
parentd8c574a5ef1a811f9a0d447097d9edfcc0c1d84c (diff)
downloadseaweedfs-origin/changing-to-zap.tar.xz
seaweedfs-origin/changing-to-zap.zip
Diffstat (limited to 'weed/operation/lookup_vid_cache.go')
-rw-r--r--weed/operation/lookup_vid_cache.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/operation/lookup_vid_cache.go b/weed/operation/lookup_vid_cache.go
index 248fc17de..79e8738e8 100644
--- a/weed/operation/lookup_vid_cache.go
+++ b/weed/operation/lookup_vid_cache.go
@@ -6,7 +6,7 @@ import (
"sync"
"time"
- "github.com/seaweedfs/seaweedfs/weed/glog"
+ "github.com/seaweedfs/seaweedfs/weed/util/log"
)
var ErrorNotFound = errors.New("not found")
@@ -23,7 +23,7 @@ type VidCache struct {
func (vc *VidCache) Get(vid string) ([]Location, error) {
id, err := strconv.Atoi(vid)
if err != nil {
- glog.V(1).Infof("Unknown volume id %s", vid)
+ log.V(2).Infof("Unknown volume id %s", vid)
return nil, err
}
vc.RLock()
@@ -42,7 +42,7 @@ func (vc *VidCache) Get(vid string) ([]Location, error) {
func (vc *VidCache) Set(vid string, locations []Location, duration time.Duration) {
id, err := strconv.Atoi(vid)
if err != nil {
- glog.V(1).Infof("Unknown volume id %s", vid)
+ log.V(2).Infof("Unknown volume id %s", vid)
return
}
vc.Lock()