fix: improve logging clarity by showing room ID

Updated the logging statement in the RSSBot class to display room IDs instead of room objects when processing feeds. This change ensures that log entries are more informative and easier to understand, especially when debugging issues related to specific rooms. The inclusion of room IDs aids in quick identification and resolution of problems by providing a clear reference to the affected chat room.
This commit is contained in:
Kumi 2024-05-18 09:08:38 +02:00
parent b70309a726
commit 6727d8eabe
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -469,7 +469,7 @@ class RSSBot:
feeds = state["content"]["feeds"] feeds = state["content"]["feeds"]
for feed in feeds: for feed in feeds:
self.logger.log(f"Processing {feed} in {room}", "debug") self.logger.log(f"Processing {feed} in {room.room_id}", "debug")
feed_state = await self.get_state_event(room, "rssbot.feed_state", feed) feed_state = await self.get_state_event(room, "rssbot.feed_state", feed)