Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
Signed-off-by: lubronzhan <lubronzhan@gmail.com>

Signed-off-by: lubronzhan <lubronzhan@gmail.com>
  • Loading branch information
lubronzhan committed Feb 18, 2024
1 parent 58361f3 commit 92c7502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/contour/filewatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func initializeWatch(path string, log logrus.FieldLogger) (*fsnotify.Watcher, er
log.Warningf("watcher receives err: %v\n", err)
case event := <-watch.Events:
if event.Op != fsnotify.Chmod {
log.Fatalf("restarting contour because received event %v on file %s\n", event.Op, path)
log.Fatalf("restarting contour because received event %v on file %s\n", event.Op.String(), path)
} else {
log.Printf("watcher receives %s on the mounted file %s\n", event.Op.String(), event.Name)
}
Expand Down

0 comments on commit 92c7502

Please sign in to comment.