Skip to content

Commit

Permalink
use debug_warn for presence spam
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Volk <[email protected]>
  • Loading branch information
jevolk committed Jun 6, 2024
1 parent 9814f18 commit bcae937
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/service/presence/data.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use conduit::debug_info;
use std::sync::Arc;

use conduit::debug_warn;
use ruma::{events::presence::PresenceEvent, presence::PresenceState, OwnedUserId, UInt, UserId};

use crate::{
Expand Down Expand Up @@ -67,7 +69,7 @@ impl Data for KeyValueDatabase {

// tighten for state flicker?
if !state_changed && last_active_ts <= last_last_active_ts {
debug_info!(
debug_warn!(
"presence spam {:?} last_active_ts:{:?} <= {:?}",
user_id,
last_active_ts,
Expand Down

0 comments on commit bcae937

Please sign in to comment.