mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-27 02:44:54 +00:00
fix: Silence unnecessary policy server errors in debug builds
This commit is contained in:
@@ -58,7 +58,11 @@ pub async fn ask_policy_server(
|
||||
.state_accessor
|
||||
.room_state_get_content(room_id, &StateEventType::RoomPolicy, "")
|
||||
.await
|
||||
.inspect_err(|e| debug_error!("failed to load room policy server state event: {e}"))
|
||||
.inspect_err(|e| {
|
||||
if !e.is_not_found() {
|
||||
debug_error!("failed to load room policy server state event: {e}");
|
||||
}
|
||||
})
|
||||
.map(|c: RoomPolicyEventContent| c)
|
||||
else {
|
||||
debug!("room has no policy server configured");
|
||||
|
||||
Reference in New Issue
Block a user