[CalendarServer-changes] [4744] CalendarServer/branches/users/wsanchez/deployment/bin/caldav_warmup
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 12 07:07:33 PST 2009
Revision: 4744
http://trac.macosforge.org/projects/calendarserver/changeset/4744
Author: cdaboo at apple.com
Date: 2009-11-12 07:07:33 -0800 (Thu, 12 Nov 2009)
Log Message:
-----------
Changes from production.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/deployment/bin/caldav_warmup
Modified: CalendarServer/branches/users/wsanchez/deployment/bin/caldav_warmup
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/bin/caldav_warmup 2009-11-11 23:18:30 UTC (rev 4743)
+++ CalendarServer/branches/users/wsanchez/deployment/bin/caldav_warmup 2009-11-12 15:07:33 UTC (rev 4744)
@@ -277,18 +277,32 @@
calendarHomes.add(calendarHome)
n = 0
+ ok_n = 0
+ fail_n = 0
N = len(calendarHomes)
for calendarHome in calendarHomes:
n += 1
log.msg("%.2f%% (%d of %d)" % (100.0 * n/N, n, N))
- processCalendarHome(
- calendarHome,
- directory = directory,
- readCalendarData = readCalendarData,
- readProperties = readProperties,
- readIndexes = readIndexes,
- )
+ try:
+ processCalendarHome(
+ calendarHome,
+ directory = directory,
+ readCalendarData = readCalendarData,
+ readProperties = readProperties,
+ readIndexes = readIndexes,
+ )
+ ok_n += 1
+ except Exception, e:
+ log.msg("Exception for calendar home '%s': %s" % (calendarHome, e))
+ fail_n += 1
+ log.msg("")
+ log.msg("Results:")
+ log.msg("Total Processed: %d" % (n,))
+ log.msg("Total OK: %d" % (ok_n,))
+ log.msg("Total Bad: %d" % (fail_n,))
+
+
def processCalendarHome(
calendarHome,
directory = None,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091112/651a9ba3/attachment.html>
More information about the calendarserver-changes
mailing list