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