diff options
| author | chrislu <chris.lu@gmail.com> | 2025-05-22 09:54:31 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-05-22 09:54:31 -0700 |
| commit | 0d62be44846354c3c37b857028297edd4b8df17b (patch) | |
| tree | c89320a7d58351030f1b740c7267f56bf0206429 /weed/mount/weedfs_quota.go | |
| parent | d8c574a5ef1a811f9a0d447097d9edfcc0c1d84c (diff) | |
| download | seaweedfs-origin/changing-to-zap.tar.xz seaweedfs-origin/changing-to-zap.zip | |
Diffstat (limited to 'weed/mount/weedfs_quota.go')
| -rw-r--r-- | weed/mount/weedfs_quota.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/weed/mount/weedfs_quota.go b/weed/mount/weedfs_quota.go index 23f487549..b8a902db2 100644 --- a/weed/mount/weedfs_quota.go +++ b/weed/mount/weedfs_quota.go @@ -3,7 +3,7 @@ package mount import ( "context" "fmt" - "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/seaweedfs/weed/util/log" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "time" ) @@ -29,16 +29,16 @@ func (wfs *WFS) loopCheckQuota() { resp, err := client.Statistics(context.Background(), request) if err != nil { - glog.V(0).Infof("reading quota usage %v: %v", request, err) + log.V(3).Infof("reading quota usage %v: %v", request, err) return err } - glog.V(4).Infof("read quota usage: %+v", resp) + log.V(-1).Infof("read quota usage: %+v", resp) isOverQuota := int64(resp.UsedSize) > wfs.option.Quota if isOverQuota && !wfs.IsOverQuota { - glog.Warningf("Quota Exceeded! quota:%d used:%d", wfs.option.Quota, resp.UsedSize) + log.Warningf("Quota Exceeded! quota:%d used:%d", wfs.option.Quota, resp.UsedSize) } else if !isOverQuota && wfs.IsOverQuota { - glog.Warningf("Within quota limit! quota:%d used:%d", wfs.option.Quota, resp.UsedSize) + log.Warningf("Within quota limit! quota:%d used:%d", wfs.option.Quota, resp.UsedSize) } wfs.IsOverQuota = isOverQuota @@ -46,7 +46,7 @@ func (wfs *WFS) loopCheckQuota() { }) if err != nil { - glog.Warningf("read quota usage: %v", err) + log.Warningf("read quota usage: %v", err) } } |
