summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgirlbossceo <june@girlboss.ceo>2023-07-27 16:24:04 +0000
committergirlbossceo <june@girlboss.ceo>2023-07-29 14:29:26 +0000
commita0148a9996e4a3f031e80abed31f81e7b8d4a1f4 (patch)
tree9b1379a1fd584bce4151094ade387a9348d24c52
parent1f867a2c867c2ce84558e11e3dc8fa49060c21b4 (diff)
downloadconduit-a0148a9996e4a3f031e80abed31f81e7b8d4a1f4.zip
Print relevant room ID and ACL'd server in informational level
These are room ACLs, not server ACLs. Causes confusion where people think their Conduit homeserver was ACL'd. Print where these are coming from in informational level. Signed-off-by: girlbossceo <june@girlboss.ceo>
-rw-r--r--src/service/rooms/event_handler/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/service/rooms/event_handler/mod.rs b/src/service/rooms/event_handler/mod.rs
index ef5616e..89ac72e 100644
--- a/src/service/rooms/event_handler/mod.rs
+++ b/src/service/rooms/event_handler/mod.rs
@@ -1526,9 +1526,13 @@ impl Service {
if acl_event_content.is_allowed(server_name) {
Ok(())
} else {
+ info!(
+ "Server {} was denied by room ACL in {}",
+ server_name, room_id
+ );
Err(Error::BadRequest(
ErrorKind::Forbidden,
- "Server was denied by ACL",
+ "Server was denied by room ACL",
))
}
}