Commented.

This commit is contained in:
Stéphan Kochen 2004-04-16 21:23:53 +00:00
parent 4a5380b4f7
commit 69b255b4f5
1 changed files with 3 additions and 0 deletions

View File

@ -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))