Mention that level can be an int or str in the setLevel docstring.
This commit is contained in:
parent
564a42c8de
commit
e85488c6f4
|
@ -789,7 +789,7 @@ class Handler(Filterer):
|
|||
|
||||
def setLevel(self, level):
|
||||
"""
|
||||
Set the logging level of this handler.
|
||||
Set the logging level of this handler. level must be an int or a str.
|
||||
"""
|
||||
self.level = _checkLevel(level)
|
||||
|
||||
|
@ -1194,7 +1194,7 @@ class Logger(Filterer):
|
|||
|
||||
def setLevel(self, level):
|
||||
"""
|
||||
Set the logging level of this logger.
|
||||
Set the logging level of this logger. level must be an int or a str.
|
||||
"""
|
||||
self.level = _checkLevel(level)
|
||||
|
||||
|
|
Loading…
Reference in New Issue