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