[CalendarServer-changes] [8330] CalendarServer/branches/users/glyph/multiget-delete/twext/web2/dav/ method/prop_common.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 18 10:14:39 PST 2011


Revision: 8330
          http://trac.macosforge.org/projects/calendarserver/changeset/8330
Author:   glyph at apple.com
Date:     2011-11-18 10:14:39 -0800 (Fri, 18 Nov 2011)
Log Message:
-----------
Don't log missing properties unless the error code is something funky, other than 404.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/multiget-delete/twext/web2/dav/method/prop_common.py

Modified: CalendarServer/branches/users/glyph/multiget-delete/twext/web2/dav/method/prop_common.py
===================================================================
--- CalendarServer/branches/users/glyph/multiget-delete/twext/web2/dav/method/prop_common.py	2011-11-18 18:14:30 UTC (rev 8329)
+++ CalendarServer/branches/users/glyph/multiget-delete/twext/web2/dav/method/prop_common.py	2011-11-18 18:14:39 UTC (rev 8330)
@@ -93,10 +93,10 @@
                 properties_by_status[responsecode.OK].append(prop)
             except:
                 f = Failure()
-    
-                log.err("Error reading property %r for resource %s: %s" % (qname, request.uri, f.value))
-    
                 status = statusForFailure(f, "getting property: %s" % (qname,))
+                if status != responsecode.NOT_FOUND:
+                    log.err("Error reading property %r for resource %s: %s" %
+                            (qname, request.uri, f.value))
                 if status not in properties_by_status: properties_by_status[status] = []
                 properties_by_status[status].append(propertyName(qname))
         else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111118/4b36025a/attachment.html>


More information about the calendarserver-changes mailing list