From fc334ec7b956817de1f8af0ce51664922d79e518 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Fri, 19 Mar 2021 00:24:38 +0800 Subject: [PATCH] :wheelchair: add logger id --- nonebot/log.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nonebot/log.py b/nonebot/log.py index 854b4b78..3f6d1e1a 100644 --- a/nonebot/log.py +++ b/nonebot/log.py @@ -77,8 +77,8 @@ default_format = ( "{name} | " # "{function}:{line}| " "{message}") -logger.add(sys.stdout, - colorize=True, - diagnose=False, - filter=default_filter, - format=default_format) +logger_id = logger.add(sys.stdout, + colorize=True, + diagnose=False, + filter=default_filter, + format=default_format)