mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
oops, forgot to return.
This commit is contained in:
parent
92b0d6da1f
commit
9f1dd19ff7
@ -268,6 +268,7 @@ class ValidLogLevel(registry.String):
|
|||||||
level = logging.getLevelName(self.value)
|
level = logging.getLevelName(self.value)
|
||||||
if level.startswith('Level'):
|
if level.startswith('Level'):
|
||||||
level = level.split()[-1]
|
level = level.split()[-1]
|
||||||
|
return level
|
||||||
|
|
||||||
class LogLevel(ValidLogLevel):
|
class LogLevel(ValidLogLevel):
|
||||||
"""Invalid log level. Value must be either DEBUG, INFO, WARNING, ERROR,
|
"""Invalid log level. Value must be either DEBUG, INFO, WARNING, ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user