[CalendarServer-changes] [11345] CalendarServer/trunk/twistedcaldav/memcacheprops.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 13 16:08:57 PDT 2013


Revision: 11345
          http://trac.calendarserver.org//changeset/11345
Author:   wsanchez at apple.com
Date:     2013-06-13 16:08:56 -0700 (Thu, 13 Jun 2013)
Log Message:
-----------
Defer generation of debug output.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/memcacheprops.py

Modified: CalendarServer/trunk/twistedcaldav/memcacheprops.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/memcacheprops.py	2013-06-13 23:07:13 UTC (rev 11344)
+++ CalendarServer/trunk/twistedcaldav/memcacheprops.py	2013-06-13 23:08:56 UTC (rev 11345)
@@ -150,11 +150,10 @@
         else:
             missing = ""
         self.log.debug(
-            "Loaded keys for {missing}children of {collection}: {children}",
+            "Loaded keys for {missing}children of {collection}: {children()}",
             missing=missing, collection=self.collection,
-            children=[name for _ignore_key, name in keys],
+            children=lambda: [name for _ignore_key, name in keys],
         )
-        # FIXME.logging: defer the above list comprehension
 
         missing = tuple((
             name for key, name in keys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130613/11ac6d6a/attachment.html>


More information about the calendarserver-changes mailing list