diff src/plugins/plugin_xep_0065.py @ 1179:9a85836f0d45

plugins XEP-0096, XEP-0065: fixed bad log calls
author Goffi <goffi@goffi.org>
date Mon, 08 Sep 2014 15:50:51 +0200
parents 301b342c697a
children 96fb74a4714d
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0065.py	Mon Sep 08 15:50:49 2014 +0200
+++ b/src/plugins/plugin_xep_0065.py	Mon Sep 08 15:50:51 2014 +0200
@@ -352,7 +352,7 @@
         pass
 
     def authenticateUserPass(self, user, passwd):
-        log.debug("User/pass: %s/%s", user, passwd)
+        log.debug("User/pass: %s/%s" % (user, passwd))
         return True
 
     def dataReceived(self, buf):
@@ -403,7 +403,7 @@
         log.debug(_("Socks 5 server connection started"))
 
     def clientConnectionLost(self, connector, reason):
-        log.debug(_("Socks 5 server connection lost (reason: %s)"), reason)
+        log.debug(_("Socks 5 server connection lost (reason: %s)") % reason)
 
 
 class Socks5ClientFactory(protocol.ClientFactory):
@@ -431,7 +431,7 @@
         log.debug(_("Socks 5 client connection started"))
 
     def clientConnectionLost(self, connector, reason):
-        log.debug(_("Socks 5 client connection lost (reason: %s)"), reason)
+        log.debug(_("Socks 5 client connection lost (reason: %s)") % reason)
         self.finishedCb(self.sid, reason.type == error.ConnectionDone, self.profile)  # TODO: really check if the state is actually successful