mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
refactor: Improve summary service logging
This commit is contained in:
@@ -342,6 +342,7 @@ impl Service {
|
|||||||
// If we can't find a version for this room, it doesn't exist.
|
// If we can't find a version for this room, it doesn't exist.
|
||||||
let room_version = self.services.state.get_room_version(room_id).await.ok()?;
|
let room_version = self.services.state.get_room_version(room_id).await.ok()?;
|
||||||
|
|
||||||
|
info!(%room_id, "Preparing local summary for room");
|
||||||
let (
|
let (
|
||||||
join_rule,
|
join_rule,
|
||||||
guest_can_join,
|
guest_can_join,
|
||||||
@@ -421,11 +422,10 @@ impl Service {
|
|||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
info!(%room_id, ?via, "Asking for room summary over federation");
|
||||||
let request = assign!(get_hierarchy::v1::Request::new(room_id.to_owned()), { suggested_only: suggested_only });
|
let request = assign!(get_hierarchy::v1::Request::new(room_id.to_owned()), { suggested_only: suggested_only });
|
||||||
|
|
||||||
for server in via {
|
for server in via {
|
||||||
info!(%room_id, %server, "Asking for room summary over federation");
|
|
||||||
|
|
||||||
match self
|
match self
|
||||||
.services
|
.services
|
||||||
.sending
|
.sending
|
||||||
@@ -443,6 +443,7 @@ impl Service {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
info!(%room_id, %server, "Got room summary");
|
||||||
return Ok(Some((room, inaccessible_children)));
|
return Ok(Some((room, inaccessible_children)));
|
||||||
},
|
},
|
||||||
| Err(err) => {
|
| Err(err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user