[CalendarServer-changes] [1280]
CalendarServer/trunk/twistedcaldav/tap.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 27 12:34:16 PST 2007
Revision: 1280
http://trac.macosforge.org/projects/calendarserver/changeset/1280
Author: dreid at apple.com
Date: 2007-02-27 12:34:16 -0800 (Tue, 27 Feb 2007)
Log Message:
-----------
Log to standard out when not daemonized.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/tap.py
Modified: CalendarServer/trunk/twistedcaldav/tap.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/tap.py 2007-02-27 20:31:54 UTC (rev 1279)
+++ CalendarServer/trunk/twistedcaldav/tap.py 2007-02-27 20:34:16 UTC (rev 1280)
@@ -147,7 +147,12 @@
raise UsageError("Only root can drop privileges, you are: %s"
% (groupname,))
- self.parent['logfile'] = config.ErrorLogFile
+ # Ignore the logfile parameter if not daemonized and log to stdout.
+ if self.parent['nodaemon']:
+ self.parent['logfile'] = None
+ else:
+ self.parent['logfile'] = config.ErrorLogFile
+
self.parent['pidfile'] = config.PIDFile
# Verify that document root actually exists
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070227/cdf984af/attachment.html
More information about the calendarserver-changes
mailing list