[CalendarServer-changes] [12402] twext/trunk/twext/python/log.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:16:57 PDT 2014


Revision: 12402
          http://trac.calendarserver.org//changeset/12402
Author:   wsanchez at apple.com
Date:     2014-01-20 12:53:35 -0800 (Mon, 20 Jan 2014)
Log Message:
-----------
Make defaultLogLevel a class variable.

Modified Paths:
--------------
    twext/trunk/twext/python/log.py

Modified: twext/trunk/twext/python/log.py
===================================================================
--- twext/trunk/twext/python/log.py	2014-01-20 20:42:04 UTC (rev 12401)
+++ twext/trunk/twext/python/log.py	2014-01-20 20:53:35 UTC (rev 12402)
@@ -641,11 +641,10 @@
     Events that not not have a log level or namespace are also dropped.
     """
 
-    def __init__(self):
-        # FIXME: Make this a class variable. But that raises an
-        # _initializeEnumerants constants error in Twisted 12.2.0.
-        self.defaultLogLevel = LogLevel.info
+    defaultLogLevel = LogLevel.info
 
+
+    def __init__(self):
         self._logLevelsByNamespace = {}
         self.clearLogLevels()
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/a93d5421/attachment.html>


More information about the calendarserver-changes mailing list