[CalendarServer-changes] [164]
CalendarServer/branches/users/cdaboo/quota/twistedcaldav/logging.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 20 12:22:54 PDT 2006
Revision: 164
http://trac.macosforge.org/projects/calendarserver/changeset/164
Author: cdaboo at apple.com
Date: 2006-09-20 12:22:54 -0700 (Wed, 20 Sep 2006)
Log Message:
-----------
Add a 'info' level log entry about rotation of access log.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/quota/twistedcaldav/logging.py
Modified: CalendarServer/branches/users/cdaboo/quota/twistedcaldav/logging.py
===================================================================
--- CalendarServer/branches/users/cdaboo/quota/twistedcaldav/logging.py 2006-09-20 19:22:15 UTC (rev 163)
+++ CalendarServer/branches/users/cdaboo/quota/twistedcaldav/logging.py 2006-09-20 19:22:54 UTC (rev 164)
@@ -39,7 +39,7 @@
logtypes = {"none": 0, "error": 1, "warning": 2, "info": 3, "debug": 4}
-currentLogLevel = 1
+currentLogLevel = logtypes["error"]
def canLog(type):
"""
@@ -201,6 +201,7 @@
log.msg("Cannot rotate log file to %s because it already exists." % (newpath,))
return
self.logMessage("Log closed - rotating: [%s]." % (datetime.datetime.now().ctime(),), False)
+ info("Rotating log file to: %s" % (newpath,), system="Logging")
self.f.close()
os.rename(self.logpath, newpath)
self._open()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20060920/94098397/attachment.html
More information about the calendarserver-changes
mailing list