Skip to content

Commit 6d58e92

Browse files
committed
Log the event name when hashConfig fails
1 parent 253dac6 commit 6d58e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/common-go/watch/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func File(ctx context.Context, path string, onChange func()) error {
8585

8686
currentHash, err := hashConfig(path)
8787
if err != nil {
88-
log.WithError(err).Warn("Cannot check if config has changed")
88+
log.WithError(err).WithField("event", event.Name).Warn("Cannot check if config has changed")
8989
return
9090
}
9191

0 commit comments

Comments
 (0)