From de35848500ac2a7774f0d723226a406bade4e82a Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 14 Jan 2012 10:54:48 -0800 Subject: Don't serialize XML unless we need to. --- sleekxmpp/xmlstream/xmlstream.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sleekxmpp') diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index d5029928..4c8696b3 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1290,8 +1290,7 @@ class XMLStream(object): if stanza is None: return - log.debug("RECV: %s", tostring(xml, xmlns=self.default_ns, - stream=self)) + log.debug("RECV: %s", stanza) # Match the stanza against registered handlers. Handlers marked # to run "in stream" will be executed immediately; the rest will -- cgit v1.2.3