Update message.py

优化日志输出多行消息的方法,使得收到的消息显示在一行中,便于日志记录
This commit is contained in:
Mix 2020-02-21 18:20:57 +08:00 committed by GitHub
parent d6f825473b
commit cd7749936e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,4 +117,4 @@ def _log_message(ctx: Context_T) -> None:
msg_from += f'@[讨论组:{ctx["discuss_id"]}]'
logger.info(f'Self: {ctx["self_id"]}, '
f'Message {ctx["message_id"]} from {msg_from}: '
f'{ctx["message"]}')
f'{ctx["message"].__repr__()}')