chore: reduce verbosity for topic_id wrong check

This commit is contained in:
Matthias
2024-12-24 13:52:51 +01:00
parent 010b282679
commit d73f01701e

View File

@@ -114,7 +114,8 @@ def authorized_only(command_handler: Callable[..., Coroutine[Any, Any, None]]):
return None return None
if (topic_id := self._config["telegram"].get("topic_id")) is not None: if (topic_id := self._config["telegram"].get("topic_id")) is not None:
if str(ctopic_id) != topic_id: if str(ctopic_id) != topic_id:
logger.info(f"Rejected message from wrong channel: {cchat_id}, {ctopic_id}") # This can be quite common in multi-topic environments.
logger.debug(f"Rejected message from wrong channel: {cchat_id}, {ctopic_id}")
return None return None
# Rollback session to avoid getting data stored in a transaction. # Rollback session to avoid getting data stored in a transaction.