[CalendarServer-changes] [2736] CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops .patch

source_changes at macosforge.org source_changes at macosforge.org
Sun Jul 20 18:17:54 PDT 2008


Revision: 2736
          http://trac.macosforge.org/projects/calendarserver/changeset/2736
Author:   wsanchez at apple.com
Date:     2008-07-20 18:17:53 -0700 (Sun, 20 Jul 2008)
Log Message:
-----------
Don't log as much

Modified Paths:
--------------
    CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch

Modified: CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch
===================================================================
--- CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch	2008-07-21 00:04:23 UTC (rev 2735)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.xattrprops.patch	2008-07-21 01:17:53 UTC (rev 2736)
@@ -46,7 +46,7 @@
          return r
  
      def _decode(clazz, name):
-@@ -97,19 +98,86 @@
+@@ -97,19 +98,83 @@
  
      def get(self, qname):
          try:
@@ -58,8 +58,6 @@
                  "No such property: {%s}%s" % qname
              ))
 +        except Exception, e:
-+            log.error("Unable to read property {%s}%s: %s"
-+                      % (qname[0], qname[1], e))
 +            raise HTTPError(StatusResponse(
 +                statusForFailure(Failure()),
 +                "Unable to read property: {%s}%s" % qname
@@ -127,7 +125,6 @@
 +                if e.errno == EAGAIN and n < 19:
 +                    sleep(random() / 10) # OMG Brutal Hax
 +                else:
-+                    log.error("Unable to write property %s: %s" % (property.sname(), e))
 +                    raise HTTPError(StatusResponse(
 +                        statusForFailure(Failure()),
 +                        "Unable to write property: %s" % (property.sname(),)
@@ -137,12 +134,11 @@
  
          # Update the resource because we've modified it
          self.resource.fp.restat()
-@@ -121,15 +189,34 @@
+@@ -121,15 +186,31 @@
              # RFC 2518 Section 12.13.1 says that removal of
              # non-existing property is not an error.
              pass
 +        except Exception, e:
-+            log.error("Unable to delete property {%s}%s: %s" % (qname[0], qname[1], e))
 +            raise HTTPError(StatusResponse(
 +                statusForFailure(Failure()),
 +                "Unable to delete property: {%s}%s" % qname
@@ -154,7 +150,6 @@
          except TypeError:
              return False
 +        except Exception, e:
-+            log.error("Unable to read properties: %s" % (e,))
 +            raise HTTPError(StatusResponse(
 +                statusForFailure(Failure()),
 +                "Unable to read properties"
@@ -168,7 +163,6 @@
 +        try:
 +            return [ self._decode(name) for name in self.attrs if name.startswith(prefix) ]
 +        except Exception, e:
-+            log.error("Unable to list properties: %s" % (e,))
 +            raise HTTPError(StatusResponse(
 +                statusForFailure(Failure()),
 +                "Unable to list properties"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080720/589a30ca/attachment.html 


More information about the calendarserver-changes mailing list