Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LAPTOP-7V78BBO2\ydf19 committed Jan 5, 2022
1 parent 4c6e4d3 commit 94ff2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nb_log/log_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94ff2b9

Please sign in to comment.