From 685b9ab1022245196dfe05c6188a0f443c4fe9d6 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 19 Nov 2011 19:08:27 -0800 Subject: [PATCH] Fix logging exceptions from formatting issues. --- sleekxmpp/xmlstream/xmlstream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 6fe6ec5..1c56fdc 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -391,7 +391,7 @@ class XMLStream(object): try: if not self.use_proxy: - log.debug("Connecting to %s:%s", self.address) + log.debug("Connecting to %s:%s" % self.address) self.socket.connect(self.address) self.set_socket(self.socket, ignore=True) @@ -808,7 +808,7 @@ class XMLStream(object): if self.dns_answers[0] == address: break self.dns_answers.pop(idx) - log.debug("Trying to connect to %s:%s", address) + log.debug("Trying to connect to %s:%s" % address) return address def add_event_handler(self, name, pointer,