@cryptotaxi247 / netdata-1 / commits / 986a187b2

Use info-level log for undhandled modification events. (#21719)

`inotify` sends two events when systemd archives a file, a modification event followed by a rename event. While we handle the rename event appropriatly, we still want to log an info-level message for modification events in order to be able to verify that the journal registry properly tracks the files that exist under log directories.

vkalintiris committed Feb 6, 2026 at 19:02 UTC 986a187b20f866ca801b9614ae56b9d52840e45d
1 file changed +4 -1
src/crates/journal-registry/src/registry/mod.rs
+4 -1
@@ -279,7 +279,10 @@ impl Registry {
279 }
280 }
281 EventKind::Modify(ModifyKind::Name(rename_mode)) => {
282 - error!("unhandled rename mode: {:?}", rename_mode);
282 + info!(
283 + "unhandled modify event: '{:?}', expecting rename event for newly archived file",
284 + rename_mode
285 + );
286 }
287 event_kind => {
288 // Ignore other events (content modifications, access, etc.)