use debug_warn for presence spam

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-06 17:44:57 +00:00
parent 6e59135a7d
commit 4a68e28c71

View file

@ -1,4 +1,4 @@
use conduit::debug_info; use conduit::debug_warn;
use ruma::{events::presence::PresenceEvent, presence::PresenceState, OwnedUserId, UInt, UserId}; use ruma::{events::presence::PresenceEvent, presence::PresenceState, OwnedUserId, UInt, UserId};
use crate::{ use crate::{
@ -67,7 +67,7 @@ impl Data for KeyValueDatabase {
// tighten for state flicker? // tighten for state flicker?
if !state_changed && last_active_ts <= last_last_active_ts { if !state_changed && last_active_ts <= last_last_active_ts {
debug_info!( debug_warn!(
"presence spam {:?} last_active_ts:{:?} <= {:?}", "presence spam {:?} last_active_ts:{:?} <= {:?}",
user_id, user_id,
last_active_ts, last_active_ts,