🔊 change log level add level config

This commit is contained in:
yanyongyu
2021-04-19 21:15:10 +08:00
parent c24d0def09
commit 79d3bbcdfe
9 changed files with 64 additions and 12 deletions

View File

@ -199,7 +199,7 @@ async def handle_event(bot: "Bot", event: "Event") -> Optional[Exception]:
except NoLogException:
show_log = False
if show_log:
logger.opt(colors=True).info(log_msg)
logger.opt(colors=True).success(log_msg)
state = {}
coros = list(map(lambda x: x(bot, event, state), _event_preprocessors))