[CalendarServer-changes] [5285] CalendarServer/trunk/calendarserver/tools/principals.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 11 11:09:45 PST 2010
Revision: 5285
http://trac.macosforge.org/projects/calendarserver/changeset/5285
Author: sagen at apple.com
Date: 2010-03-11 11:09:42 -0800 (Thu, 11 Mar 2010)
Log Message:
-----------
Don't start the observer until after we've had a chance to set the log level
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/principals.py
Modified: CalendarServer/trunk/calendarserver/tools/principals.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/principals.py 2010-03-10 23:55:11 UTC (rev 5284)
+++ CalendarServer/trunk/calendarserver/tools/principals.py 2010-03-11 19:09:42 UTC (rev 5285)
@@ -84,12 +84,6 @@
sys.exit(0)
def main():
- #
- # Send logging output to stdout
- #
- observer = StandardIOObserver()
- observer.start()
-
try:
(optargs, args) = getopt(
sys.argv[1:], "hf:P:", [
@@ -193,6 +187,13 @@
loadConfig(configFileName)
setLogLevelForNamespace(None, "warn")
+ #
+ # Send logging output to stdout
+ #
+ observer = StandardIOObserver()
+ observer.start()
+
+
# Shed privileges
if config.UserName and config.GroupName and os.getuid() == 0:
uid = getpwnam(config.UserName).pw_uid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100311/13725b49/attachment.html>
More information about the calendarserver-changes
mailing list