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:
@@ -102,8 +102,14 @@ impl BaseWorker {
|
||||
}
|
||||
|
||||
let step = state.current_step.lock().unwrap().clone();
|
||||
|
||||
// "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}");
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user