[CalendarServer-changes] [2551] CalendarServer/trunk/twistedcaldav/log.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 6 16:10:00 PDT 2008
Revision: 2551
http://trac.macosforge.org/projects/calendarserver/changeset/2551
Author: wsanchez at apple.com
Date: 2008-06-06 16:10:00 -0700 (Fri, 06 Jun 2008)
Log Message:
-----------
clearLogLevels() needs to preserve the None value.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/log.py
Modified: CalendarServer/trunk/twistedcaldav/log.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/log.py 2008-06-06 23:09:41 UTC (rev 2550)
+++ CalendarServer/trunk/twistedcaldav/log.py 2008-06-06 23:10:00 UTC (rev 2551)
@@ -81,8 +81,6 @@
# Tools for manageing log levels
##
-logLevelsByNamespace = {None: "info"}
-
def logLevelForNamespace(namespace):
"""
@param namespace: a logging namespace, or C{None} to set the
@@ -125,7 +123,11 @@
Clears all log levels to the default.
"""
logLevelsByNamespace.clear()
+ logLevelsByNamespace[None] = "info"
+logLevelsByNamespace = {}
+clearLogLevels()
+
##
# Loggers
##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080606/2213da94/attachment.htm
More information about the calendarserver-changes
mailing list