log room for backfill_if_required requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-22 00:32:57 -04:00 committed by June
parent d7fc6874d1
commit 7c9c5b1d78

View file

@ -1000,18 +1000,18 @@ impl Service {
let pub_key_map = RwLock::new(BTreeMap::new()); let pub_key_map = RwLock::new(BTreeMap::new());
for pdu in response.pdus { for pdu in response.pdus {
if let Err(e) = self.backfill_pdu(backfill_server, pdu, &pub_key_map).await { if let Err(e) = self.backfill_pdu(backfill_server, pdu, &pub_key_map).await {
warn!("Failed to add backfilled pdu: {e}"); warn!("Failed to add backfilled pdu in room {room_id}: {e}");
} }
} }
return Ok(()); return Ok(());
}, },
Err(e) => { Err(e) => {
warn!("{backfill_server} failed to provide backfill: {e}"); warn!("{backfill_server} failed to provide backfill for room {room_id}: {e}");
}, },
} }
} }
info!("No servers could backfill, but backfill was needed"); info!("No servers could backfill, but backfill was needed in room {room_id}");
Ok(()) Ok(())
} }