diff --git a/src/auto_splitting/mod.rs b/src/auto_splitting/mod.rs index 49f23440..7f1ef97c 100644 --- a/src/auto_splitting/mod.rs +++ b/src/auto_splitting/mod.rs @@ -862,6 +862,7 @@ async fn watchdog( interrupt_receiver: watch::Receiver>, ) { const TIMEOUT: Duration = Duration::from_secs(5); + let mut has_timed_out = false; loop { let instant = *timeout_receiver.borrow(); @@ -876,6 +877,10 @@ async fn watchdog( Ok(Err(_)) => return, Err(_) => { if let Some(handle) = &*interrupt_receiver.borrow() { + if !has_timed_out { + log::error!(target: "Auto Splitter", "timeout, no update in {} seconds", TIMEOUT.as_secs_f32()); + has_timed_out = true; + } handle.interrupt(); } }