From 45119d4d4075c80d2c87dd90e57e53ca3fcb7114 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 8 Sep 2014 15:50:51 +0200 Subject: [PATCH] plugins XEP-0096, XEP-0065: fixed bad log calls --- src/plugins/plugin_xep_0065.py | 6 +++--- src/plugins/plugin_xep_0096.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/plugin_xep_0065.py b/src/plugins/plugin_xep_0065.py index 6bec6e13..5d3afc94 100755 --- a/src/plugins/plugin_xep_0065.py +++ b/src/plugins/plugin_xep_0065.py @@ -352,7 +352,7 @@ class SOCKSv5(protocol.Protocol, FileSender): 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 @@ class Socks5ServerFactory(protocol.ServerFactory): 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 @@ class Socks5ClientFactory(protocol.ClientFactory): 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 diff --git a/src/plugins/plugin_xep_0096.py b/src/plugins/plugin_xep_0096.py index 19eff583..9677c3ff 100755 --- a/src/plugins/plugin_xep_0096.py +++ b/src/plugins/plugin_xep_0096.py @@ -180,7 +180,7 @@ class XEP_0096(object): 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])