fix: Silence unnecessary policy server errors in debug builds
This commit is contained in:
parent
2bf9207cc4
commit
dc6bd4e541
1 changed files with 5 additions and 1 deletions
|
|
@ -58,7 +58,11 @@ pub async fn ask_policy_server(
|
||||||
.state_accessor
|
.state_accessor
|
||||||
.room_state_get_content(room_id, &StateEventType::RoomPolicy, "")
|
.room_state_get_content(room_id, &StateEventType::RoomPolicy, "")
|
||||||
.await
|
.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)
|
.map(|c: RoomPolicyEventContent| c)
|
||||||
else {
|
else {
|
||||||
debug!("room has no policy server configured");
|
debug!("room has no policy server configured");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue