changeset 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 49d39b619e5d
children 69aace10b46d
files src/plugins/plugin_xep_0065.py src/plugins/plugin_xep_0096.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
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
 
 
--- a/src/plugins/plugin_xep_0096.py	Mon Sep 08 15:50:49 2014 +0200
+++ b/src/plugins/plugin_xep_0096.py	Mon Sep 08 15:50:51 2014 +0200
@@ -180,7 +180,7 @@
                 misc_elts.append(range_elt)
             self.host.plugins["XEP-0095"].acceptStream(data["id"], data['from'], feature_elt, misc_elts, profile)
         else:
-            log.debug(_("Transfer [%s] refused"), sid)
+            log.debug(_("Transfer [%s] refused") % sid)
             self.host.plugins["XEP-0095"].sendRejectedError(data["id"], data['from'], profile=profile)
             del(client._xep_0096_waiting_for_approval[sid])