Skip to content

Commit 330c67b

Browse files
committed
chore(cmd): add debug message into AnyFileNewerThan
- makes for easier debugging Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
1 parent b5a15a3 commit 330c67b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/firmware-action/filesystem/filesystem.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ func AnyFileNewerThan(path string, givenTime time.Time) (bool, error) {
246246
return nil
247247
})
248248
if errors.Is(errMod, ErrFileModified) {
249+
slog.Debug(
250+
"Detected changes in files",
251+
slog.Any("error", errMod),
252+
)
249253
return true, nil
250254
}
251255
return false, nil

0 commit comments

Comments
 (0)