diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-01 11:15:52 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-01 11:19:57 -0700 |
| commit | 49d6dcfbc61185c2a2669ad7f1f0ec0c99faf74a (patch) | |
| tree | a25bf01fcd001690ac1ffe3341cad09a24dc497c /weed/stats/disk.go | |
| parent | 90ddd7ec928d1a74c34f26779ea684b9d85658fb (diff) | |
| download | seaweedfs-49d6dcfbc61185c2a2669ad7f1f0ec0c99faf74a.tar.xz seaweedfs-49d6dcfbc61185c2a2669ad7f1f0ec0c99faf74a.zip | |
dynamically change the log level for reading the disk status
Diffstat (limited to 'weed/stats/disk.go')
| -rw-r--r-- | weed/stats/disk.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/stats/disk.go b/weed/stats/disk.go index 8af7240a8..a8f906213 100644 --- a/weed/stats/disk.go +++ b/weed/stats/disk.go @@ -8,6 +8,8 @@ import ( func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) { disk = &volume_server_pb.DiskStatus{Dir: path} fillInDiskStatus(disk) - glog.V(2).Infof("read disk size: %v", disk) + if disk.PercentUsed > 95 { + glog.V(0).Infof("disk status: %v", disk) + } return } |
