adjust logging

This commit is contained in:
Chris Lu 2020-03-09 10:36:03 -07:00
parent 89eb05b50f
commit 14ae33d642

View file

@ -158,8 +158,8 @@ func getWritableRemoteReplications(s *storage.Store, volumeId needle.VolumeId, m
if copyCount > 1 {
if lookupResult, lookupErr := operation.Lookup(masterNode, volumeId.String()); lookupErr == nil {
if len(lookupResult.Locations) < copyCount {
err = fmt.Errorf("replicating opetations [%d] is less than volume's replication copy count [%d]",
len(lookupResult.Locations), copyCount)
err = fmt.Errorf("replicating opetations [%d] is less than volume %d replication copy count [%d]",
len(lookupResult.Locations), volumeId, copyCount)
return
}
selfUrl := s.Ip + ":" + strconv.Itoa(s.Port)