mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
Commented.
This commit is contained in:
parent
4a5380b4f7
commit
69b255b4f5
@ -133,6 +133,9 @@ _ircHandler.setFormatter(_ircFormatter)
|
||||
class IrcLogLevel(log.LogLevel):
|
||||
"""Value must be one of INFO, WARNING, ERROR, or CRITICAL."""
|
||||
def set(self, s):
|
||||
# FIXME: Overriding set() here because log.LogLevel.set() sets the
|
||||
# default log level as well. log.LogLevel and this class should be
|
||||
# refactored and use registry.OnlySomeStrings in the future.
|
||||
s = s.upper()
|
||||
try:
|
||||
self.setValue(getattr(logging, s))
|
||||
|
Loading…
Reference in New Issue
Block a user