Revision
15478
Author
wsanchez@apple.com
Date
2016-03-17 15:17:47 -0700 (Thu, 17 Mar 2016)

Log Message

Use logging APi correctly.

Modified Paths

Diff

Modified: twext/trunk/twext/who/ldap/_service.py (15477 => 15478)


--- 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(