Browse Source

address second round PR feedback for issue #8230

- Use fmt.Fprintf(c.writer, ...) instead of fmt.Printf
- Add missing newline in "deleting path" log message
pull/8266/head
Chris Lu 3 days ago
parent
commit
7737196078
  1. 2
      weed/shell/command_volume_fsck.go

2
weed/shell/command_volume_fsck.go

@ -293,7 +293,7 @@ func (c *commandVolumeFsck) collectFilerFileIdAndPaths(dataNodeVolumeIdToVInfo m
} }
fmt.Fprintf(c.writer, "%d,%x%08x %s volume not found\n", i.vid, i.fileKey, i.cookie, i.path) fmt.Fprintf(c.writer, "%d,%x%08x %s volume not found\n", i.vid, i.fileKey, i.cookie, i.path)
if purgeAbsent { if purgeAbsent {
fmt.Printf("deleting path %s after volume not found", i.path)
fmt.Fprintf(c.writer, "deleting path %s after volume not found\n", i.path)
c.httpDelete(i.path) c.httpDelete(i.path)
} }
} }

Loading…
Cancel
Save