[CalendarServer-changes] [12788] CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 3 17:39:51 PST 2014


Revision: 12788
          http://trac.calendarserver.org//changeset/12788
Author:   sagen at apple.com
Date:     2014-03-03 17:39:50 -0800 (Mon, 03 Mar 2014)
Log Message:
-----------
Fix log formatting

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py

Modified: CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py	2014-03-03 23:47:56 UTC (rev 12787)
+++ CalendarServer/trunk/twistedcaldav/directory/ldapdirectory.py	2014-03-04 01:39:50 UTC (rev 12788)
@@ -560,7 +560,7 @@
                 totalTime = time.time() - startTime
                 if totalTime > self.warningThresholdSeconds:
                     self.log.error(
-                        "LDAP auth exceeded threshold: {time!.2f} seconds for "
+                        "LDAP auth exceeded threshold: {time:.2f} seconds for "
                         "{dn}", time=totalTime, dn=dn
                     )
 
@@ -633,7 +633,7 @@
                 if filterstr and len(filterstr) > 100:
                     filterstr = "%s..." % (filterstr[:100],)
                 self.log.error(
-                    "LDAP query exceeded threshold: {time!.2f} seconds for "
+                    "LDAP query exceeded threshold: {time:.2f} seconds for "
                     "{base} {filter} {attrs} (#results={count:d})",
                     time=totalTime, base=base, filter=filterstr,
                     attrs=attrlist, count=len(result),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140303/909b56bb/attachment-0001.html>


More information about the calendarserver-changes mailing list