From ee5a15943195924ebbea9eb4d9b161b11bef6ffb Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 6 May 2024 22:57:41 +0200 Subject: [PATCH] Yet another another logging fix --- src/bot.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index b4e2126..d756661 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -120,13 +120,12 @@ pub(crate) async fn run() { async fn idle(start: &DateTime, config: &Config) { let mut sleep_duration = Duration::seconds(30); + let info_msg = format!("Idling for {} seconds", sleep_duration.num_seconds()); + info!(info_msg); if Utc::now() - start > sleep_duration { sleep_duration = Duration::seconds(60); } - let info_msg = format!("Idling for {} seconds", sleep_duration.num_seconds()); - info!(info_msg); - if let Some(status_url) = config.status_post_url.clone() { match reqwest::get(status_url).await { Ok(_) => {}