diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-11 16:57:53 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-11 16:57:53 -0800 |
| commit | ae655033ac62a05f6f4e8df388f867207822cbe4 (patch) | |
| tree | aab2101464d3406ac7dc078a34147221b102364f /weed/storage/volume.go | |
| parent | d986c7196d96d2c6007f74f599d7809133d8915f (diff) | |
| download | seaweedfs-ae655033ac62a05f6f4e8df388f867207822cbe4.tar.xz seaweedfs-ae655033ac62a05f6f4e8df388f867207822cbe4.zip | |
adjust logging
Diffstat (limited to 'weed/storage/volume.go')
| -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 c726e7f11..7712c5eda 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -205,9 +205,9 @@ func (v *Volume) expired(contentSize uint64, volumeSizeLimit uint64) bool { if v.Ttl == nil || v.Ttl.Minutes() == 0 { return false } - glog.V(2).Infof("now:%v lastModified:%v", time.Now().Unix(), v.lastModifiedTsSeconds) + glog.V(2).Infof("volume %d now:%v lastModified:%v", v.Id, time.Now().Unix(), v.lastModifiedTsSeconds) livedMinutes := (time.Now().Unix() - int64(v.lastModifiedTsSeconds)) / 60 - glog.V(2).Infof("ttl:%v lived:%v", v.Ttl, livedMinutes) + glog.V(2).Infof("volume %d ttl:%v lived:%v", v.Id, v.Ttl, livedMinutes) if int64(v.Ttl.Minutes()) < livedMinutes { return true } |
