[CalendarServer-changes] [4624] CalendarServer/branches/users/cdaboo/deployment-partition-4593/ twistedcaldav/config.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 21 07:43:50 PDT 2009
Revision: 4624
http://trac.macosforge.org/projects/calendarserver/changeset/4624
Author: cdaboo at apple.com
Date: 2009-10-21 07:43:49 -0700 (Wed, 21 Oct 2009)
Log Message:
-----------
Log level handling was broken.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/deployment-partition-4593/twistedcaldav/config.py
Modified: CalendarServer/branches/users/cdaboo/deployment-partition-4593/twistedcaldav/config.py
===================================================================
--- CalendarServer/branches/users/cdaboo/deployment-partition-4593/twistedcaldav/config.py 2009-10-21 13:35:39 UTC (rev 4623)
+++ CalendarServer/branches/users/cdaboo/deployment-partition-4593/twistedcaldav/config.py 2009-10-21 14:43:49 UTC (rev 4624)
@@ -615,15 +615,15 @@
clearLogLevels()
try:
- if "DefaultLogLevel" in self._data:
- level = self._data["DefaultLogLevel"]
+ if "DefaultLogLevel" in items:
+ level = items["DefaultLogLevel"]
if not level:
level = "warn"
setLogLevelForNamespace(None, level)
- if "LogLevels" in self._data:
- for namespace in self._data["LogLevels"]:
- setLogLevelForNamespace(namespace, self._data["LogLevels"][namespace])
+ if "LogLevels" in items:
+ for namespace in items["LogLevels"]:
+ setLogLevelForNamespace(namespace, items["LogLevels"][namespace])
except InvalidLogLevelError, e:
raise ConfigurationError("Invalid log level: %s" % (e.level))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091021/e52ab34e/attachment.html>
More information about the calendarserver-changes
mailing list