mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-07 04:27:49 +01:00
dynamically change the log level for reading the disk status
This commit is contained in:
1 parent
90ddd7ec92
commit
49d6dcfbc6
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user