mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix logging when error
address https://github.com/chrislusf/seaweedfs/pull/1685#issuecomment-747845601
This commit is contained in:
parent
e2076201d7
commit
738c4fd203
|
@ -257,14 +257,14 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
|
|||
location.volumesLock.Lock()
|
||||
for _, vid := range deleteVids {
|
||||
found, err := location.deleteVolumeById(vid)
|
||||
if found {
|
||||
if err == nil {
|
||||
if found {
|
||||
glog.V(0).Infof("volume %d is deleted", vid)
|
||||
}
|
||||
} else {
|
||||
glog.V(0).Infof("delete volume %d: %v", vid, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
location.volumesLock.Unlock()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue