[CalendarServer-changes] [14397] CalDAVTester/trunk/cdtdiagnose.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 10 13:26:48 PST 2015
Revision: 14397
http://trac.calendarserver.org//changeset/14397
Author: dre at apple.com
Date: 2015-02-10 13:26:48 -0800 (Tue, 10 Feb 2015)
Log Message:
-----------
Update cdtdiagnose for modern server log path
Modified Paths:
--------------
CalDAVTester/trunk/cdtdiagnose.py
Modified: CalDAVTester/trunk/cdtdiagnose.py
===================================================================
--- CalDAVTester/trunk/cdtdiagnose.py 2015-02-10 21:22:58 UTC (rev 14396)
+++ CalDAVTester/trunk/cdtdiagnose.py 2015-02-10 21:26:48 UTC (rev 14397)
@@ -79,12 +79,12 @@
error("Could not copy server info file: '%s' to '%s'" % (server_path, archive_path,), e)
# Get server logs
- server_path = "/var/log/caldavd"
+ logs_path = os.path.join(library_root, "Logs")
archive_path = os.path.join(dirname, "logs")
try:
- shutil.copytree(server_path, archive_path)
+ shutil.copytree(logs_path, archive_path)
except Exception as e:
- error("Could not copy server logs: '%s' to '%s'" % (server_path, archive_path,), e)
+ error("Could not copy server logs: '%s' to '%s'" % (logs_path, archive_path,), e)
# Get server config files
server_path = os.path.join(server_root, "etc", "caldavd")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150210/8ab838b0/attachment.html>
More information about the calendarserver-changes
mailing list