Enhance logging in BaseWorker: Updated watchdog logging to suppress "idle" messages, reducing spam during continuous operation and improving debug clarity.

This commit is contained in:
Torsten Schulz (local)
2025-11-24 09:29:54 +01:00
parent b11148b499
commit 2c547ed495

View File

@@ -102,7 +102,13 @@ impl BaseWorker {
}
let step = state.current_step.lock().unwrap().clone();
eprintln!("[{name}] Watchdog: current step = {step}");
// "idle"-Meldungen sind im Dauerbetrieb eher Spam und helfen
// beim Debuggen selten. Deshalb nur loggen, wenn der Worker
// sich nicht im Idle-Zustand befindet.
if !step.ends_with(" idle") {
eprintln!("[{name}] Watchdog: current step = {step}");
}
}
}));
}