[CalendarServer-changes] [11320] CalendarServer/trunk/twext/python/log.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 5 18:27:01 PDT 2013
Revision: 11320
http://trac.calendarserver.org//changeset/11320
Author: wsanchez at apple.com
Date: 2013-06-05 18:27:01 -0700 (Wed, 05 Jun 2013)
Log Message:
-----------
docs
Modified Paths:
--------------
CalendarServer/trunk/twext/python/log.py
Modified: CalendarServer/trunk/twext/python/log.py
===================================================================
--- CalendarServer/trunk/twext/python/log.py 2013-06-06 01:14:58 UTC (rev 11319)
+++ CalendarServer/trunk/twext/python/log.py 2013-06-06 01:27:01 UTC (rev 11320)
@@ -80,11 +80,14 @@
# Log level definitions
#
-class InvalidLogLevelError(RuntimeError):
+class InvalidLogLevelError(Exception):
"""
Someone tried to use a L{LogLevel} that is unknown to the logging system.
"""
def __init__(self, level):
+ """
+ @param level: a L{LogLevel}
+ """
super(InvalidLogLevelError, self).__init__(str(level))
self.level = level
@@ -101,6 +104,11 @@
@classmethod
def levelWithName(cls, name):
+ """
+ @param name: the name of a L{LogLevel}
+
+ @return: the L{LogLevel} with the specified C{name}
+ """
try:
return cls.lookupByName(name)
except ValueError:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130605/2ac499e7/attachment.html>
More information about the calendarserver-changes
mailing list