[CalendarServer-changes] [15478] twext/trunk/twext/who/ldap/_service.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 17 15:17:47 PDT 2016


Revision: 15478
          http://trac.calendarserver.org//changeset/15478
Author:   wsanchez at apple.com
Date:     2016-03-17 15:17:47 -0700 (Thu, 17 Mar 2016)
Log Message:
-----------
Use logging APi correctly.

Modified Paths:
--------------
    twext/trunk/twext/who/ldap/_service.py

Modified: twext/trunk/twext/who/ldap/_service.py
===================================================================
--- twext/trunk/twext/who/ldap/_service.py	2016-03-17 22:16:13 UTC (rev 15477)
+++ twext/trunk/twext/who/ldap/_service.py	2016-03-17 22:17:47 UTC (rev 15478)
@@ -694,10 +694,16 @@
                             s.processResults()
 
                         except ldap.SIZELIMIT_EXCEEDED as e:
-                            self.log.debug("LDAP result limit exceeded: {}".format(limitResults,))
+                            self.log.debug(
+                                "LDAP result limit exceeded: {limit}",
+                                limit=limitResults,
+                            )
 
                         except ldap.TIMELIMIT_EXCEEDED as e:
-                            self.log.warn("LDAP timeout exceeded: {} seconds".format(timeoutSeconds,))
+                            self.log.warn(
+                                "LDAP timeout exceeded: {timeout} seconds",
+                                timeout=timeoutSeconds,
+                            )
 
                         except ldap.FILTER_ERROR as e:
                             self.log.error(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160317/1b91e6e1/attachment.html>


More information about the calendarserver-changes mailing list