adjust log content

This commit is contained in:
Richard Chien 2020-03-16 16:55:56 +08:00
parent 9b54af70e6
commit 035782715f
2 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@ def parse_command(bot: NoneBot,
:param cmd_string: command string
:return: (Command object, current arg string)
"""
logger.debug(f'Parsing command: {cmd_string}')
logger.debug(f'Parsing command: {repr(cmd_string)}')
matched_start = None
for start in bot.config.COMMAND_START:

View File

@ -118,4 +118,4 @@ def _log_message(event: CQEvent) -> None:
msg_from += f'@[讨论组:{event.discuss_id}]'
logger.info(f'Self: {event.self_id}, '
f'Message {event.message_id} from {msg_from}: '
f'{str(event.message).__repr__()}')
f'{repr(str(event.message))}')