mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Commented.
This commit is contained in:
parent
4a5380b4f7
commit
69b255b4f5
@ -133,6 +133,9 @@ _ircHandler.setFormatter(_ircFormatter)
|
|||||||
class IrcLogLevel(log.LogLevel):
|
class IrcLogLevel(log.LogLevel):
|
||||||
"""Value must be one of INFO, WARNING, ERROR, or CRITICAL."""
|
"""Value must be one of INFO, WARNING, ERROR, or CRITICAL."""
|
||||||
def set(self, s):
|
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()
|
s = s.upper()
|
||||||
try:
|
try:
|
||||||
self.setValue(getattr(logging, s))
|
self.setValue(getattr(logging, s))
|
||||||
|
Loading…
Reference in New Issue
Block a user