diff options
| author | Chris Lu <chris.lu@gmail.com> | 2016-11-13 14:07:51 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2016-11-13 14:07:51 -0800 |
| commit | f54f530ada119f9bfe45d087c5474a2c70e2b9a1 (patch) | |
| tree | 51a04f06d760e4f4c718e2bab46920b961e509fe | |
| parent | d0cc9a5634ff2657bbb41cf21ca2853f67937371 (diff) | |
| download | seaweedfs-f54f530ada119f9bfe45d087c5474a2c70e2b9a1.tar.xz seaweedfs-f54f530ada119f9bfe45d087c5474a2c70e2b9a1.zip | |
adjust verbose logging
| -rw-r--r-- | weed/storage/volume.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go index c1d531376..dfd623eaa 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -95,9 +95,9 @@ func (v *Volume) expired(volumeSizeLimit uint64) bool { if v.Ttl == nil || v.Ttl.Minutes() == 0 { return false } - glog.V(0).Infof("now:%v lastModified:%v", time.Now().Unix(), v.lastModifiedTime) + glog.V(1).Infof("now:%v lastModified:%v", time.Now().Unix(), v.lastModifiedTime) livedMinutes := (time.Now().Unix() - int64(v.lastModifiedTime)) / 60 - glog.V(0).Infof("ttl:%v lived:%v", v.Ttl, livedMinutes) + glog.V(1).Infof("ttl:%v lived:%v", v.Ttl, livedMinutes) if int64(v.Ttl.Minutes()) < livedMinutes { return true } |
