Skip to content

Commit

Permalink
Report additional details in announcer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed May 26, 2024
1 parent 5d97afb commit 195b75d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/announcer/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ pub(super) fn get_duration_before_event_notification(
let delta = (event.start + start_offset) - timepoint;

delta.to_std().unwrap_or_else(|e| {
warn!("Negative time before event, something may be fucky... ({e})");
warn!(
"Negative time before event ({}s), something may be fucky... ({e})",
delta.num_seconds()
);
std::time::Duration::ZERO
})
}
Expand Down

0 comments on commit 195b75d

Please sign in to comment.