mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
dynamically change the log level for reading the disk status
This commit is contained in:
parent
90ddd7ec92
commit
49d6dcfbc6
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue