Improve log message formatting

This commit is contained in:
Matthias
2023-04-15 09:46:45 +02:00
parent 6a0a33739b
commit a78672c10b

View File

@@ -66,10 +66,7 @@ def authorized_only(command_handler: Callable[..., None]) -> Callable[..., Any]:
chat_id = int(self._config['telegram']['chat_id'])
if cchat_id != chat_id:
logger.info(
'Rejected unauthorized message from: %s',
update.message.chat_id
)
logger.info(f'Rejected unauthorized message from: {update.message.chat_id}')
return wrapper
# Rollback session to avoid getting data stored in a transaction.
Trade.rollback()