[CalendarServer-changes] [14396] CalDAVTester/branches/release/CalDAVTester-5.3-dev/cdtdiagnose.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 10 13:22:58 PST 2015
Revision: 14396
http://trac.calendarserver.org//changeset/14396
Author: dre at apple.com
Date: 2015-02-10 13:22:58 -0800 (Tue, 10 Feb 2015)
Log Message:
-----------
Update cdtdiagnose for modern server log path
Modified Paths:
--------------
CalDAVTester/branches/release/CalDAVTester-5.3-dev/cdtdiagnose.py
Modified: CalDAVTester/branches/release/CalDAVTester-5.3-dev/cdtdiagnose.py
===================================================================
--- CalDAVTester/branches/release/CalDAVTester-5.3-dev/cdtdiagnose.py 2015-02-10 01:59:48 UTC (rev 14395)
+++ CalDAVTester/branches/release/CalDAVTester-5.3-dev/cdtdiagnose.py 2015-02-10 21:22:58 UTC (rev 14396)
@@ -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/d65d817e/attachment.html>
More information about the calendarserver-changes
mailing list