From f7b5a1d6979835d97de1750896c0ebe366c5241c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 4 Apr 2020 13:17:23 -0700 Subject: [PATCH] add disk stat to logs --- weed/stats/disk.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/weed/stats/disk.go b/weed/stats/disk.go index e9d8baedd..813c08f7b 100644 --- a/weed/stats/disk.go +++ b/weed/stats/disk.go @@ -1,9 +1,13 @@ package stats -import "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb" +import ( + "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb" +) func NewDiskStatus(path string) (disk *volume_server_pb.DiskStatus) { disk = &volume_server_pb.DiskStatus{Dir: path} fillInDiskStatus(disk) + glog.V(0).Infof("read disk size: %v", disk) return }