[CalendarServer-changes] [6739] CalendarServer/trunk/contrib/tools/protocolanalysis.py

source_changes at macosforge.org source_changes at macosforge.org
Sat Jan 15 12:39:28 PST 2011


Revision: 6739
          http://trac.macosforge.org/projects/calendarserver/changeset/6739
Author:   cdaboo at apple.com
Date:     2011-01-15 12:39:22 -0800 (Sat, 15 Jan 2011)
Log Message:
-----------
Handle "extended" REPORT methods in the log.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/tools/protocolanalysis.py

Modified: CalendarServer/trunk/contrib/tools/protocolanalysis.py
===================================================================
--- CalendarServer/trunk/contrib/tools/protocolanalysis.py	2011-01-14 21:53:21 UTC (rev 6738)
+++ CalendarServer/trunk/contrib/tools/protocolanalysis.py	2011-01-15 20:39:22 UTC (rev 6739)
@@ -238,7 +238,7 @@
                 self.parseLine(line)
         
                 # Filter method
-                if self.ignoreNonHTTPMethods and self.currentLine.method not in httpMethods:
+                if self.ignoreNonHTTPMethods and not self.currentLine.method.startswith("REPORT(") and self.currentLine.method not in httpMethods:
                     self.currentLine.method = "???"
 
                 # Do hour ranges
@@ -692,7 +692,7 @@
     def summarizeUserInteraction(self, adjustedMethod):
         summary = {}
         otherData = self.otherUserCalendarRequests.get(adjustedMethod, {})
-        for user, others in otherData.iteritems():
+        for _ignore_user, others in otherData.iteritems():
             bucket = self.getCountBucket(len(others), userInteractionCountBuckets)
             summary[bucket] = summary.get(bucket, 0) + 1
         return summary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110115/d767c55b/attachment.html>


More information about the calendarserver-changes mailing list