From f0c2dcf44130c07c3d3706118ef31bff7692d690 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Thu, 28 Dec 2023 15:15:38 +0200 Subject: [PATCH] chore: update_notifications make log message clearer Signed-off-by: Lachezar Lechev --- src/models/ctx/update_notifications.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/ctx/update_notifications.rs b/src/models/ctx/update_notifications.rs index 473afa02e..9ef44f0a6 100644 --- a/src/models/ctx/update_notifications.rs +++ b/src/models/ctx/update_notifications.rs @@ -43,7 +43,7 @@ pub fn update_notifications( let (reason, should_make_request) = match notifications.last_updated { Some(last_updated) if last_updated + *REQUEST_LAST_VIDEOS_EVERY <= E::now() => ( format!( - "`true` since {last_updated} + {hours} <= {now}", + "`true` since {last_updated} + {hours} hours <= {now}", hours = REQUEST_LAST_VIDEOS_EVERY.num_hours(), now = E::now() ), @@ -52,7 +52,7 @@ pub fn update_notifications( None => ("`true` since last updated is `None`".to_string(), true), Some(last_updated) => ( format!( - "`false` since {last_updated} + {hours} > {now}", + "`false` since {last_updated} + {hours} hours > {now}", hours = REQUEST_LAST_VIDEOS_EVERY.num_hours(), now = E::now() ),