From 94ff2b9681aa4b763d6b140fada58befe6c2abe2 Mon Sep 17 00:00:00 2001 From: "LAPTOP-7V78BBO2\\ydf19" Date: Wed, 5 Jan 2022 09:24:54 +0800 Subject: [PATCH] commit --- nb_log/log_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb_log/log_manager.py b/nb_log/log_manager.py index cc58669..638cf19 100644 --- a/nb_log/log_manager.py +++ b/nb_log/log_manager.py @@ -206,7 +206,7 @@ def preset_log_level(self, log_level_int=20): :param log_level_int: :return: """ - self.preset_name__level_map[self._logger_name] = log_level_int + self.preset_name__level_map[self._logger_name] = log_level_int # 加*是为了强制在调用此方法时候使用关键字传参,如果以位置传参强制报错,因为此方法后面的参数中间可能以后随时会增加更多参数,造成之前的使用位置传参的代码参数意义不匹配。 # noinspection PyAttributeOutsideInit