[CalendarServer-changes] [14473] CalendarServer/trunk/calendarserver/tools/cmdline.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 24 09:12:11 PST 2015
Revision: 14473
http://trac.calendarserver.org//changeset/14473
Author: sagen at apple.com
Date: 2015-02-24 09:12:11 -0800 (Tue, 24 Feb 2015)
Log Message:
-----------
Don't log until after the log directory is actually created
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/cmdline.py
Modified: CalendarServer/trunk/calendarserver/tools/cmdline.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/cmdline.py 2015-02-24 17:02:54 UTC (rev 14472)
+++ CalendarServer/trunk/calendarserver/tools/cmdline.py 2015-02-24 17:12:11 UTC (rev 14473)
@@ -96,6 +96,8 @@
if patchConfig is not None:
patchConfig(config)
+ checkDirectories(config)
+
utilityLogFile = LogFile.fromFullPath(
config.UtilityLogFile,
rotateLength=config.ErrorLogRotateMB * 1024 * 1024,
@@ -104,9 +106,6 @@
utilityLogObserver = FileLogObserver(utilityLogFile)
utilityLogObserver.start()
-
- checkDirectories(config)
-
config.ProcessType = "Utility"
config.UtilityServiceClass = _makeValidService
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150224/a18804dc/attachment.html>
More information about the calendarserver-changes
mailing list