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:
parent
b70309a726
commit
6727d8eabe
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue