summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-08-05 23:11:22 -0400
committerLance Stout <lancestout@gmail.com>2010-08-05 23:11:22 -0400
commit4d1f071f831183568147870302722e492d71d051 (patch)
tree2529693d1de0607d61b3811fbc0e2abc9469672d /sleekxmpp
parent0d0c044a688490eb295ddd305247f406eefc0855 (diff)
downloadslixmpp-4d1f071f831183568147870302722e492d71d051.tar.gz
slixmpp-4d1f071f831183568147870302722e492d71d051.tar.bz2
slixmpp-4d1f071f831183568147870302722e492d71d051.tar.xz
slixmpp-4d1f071f831183568147870302722e492d71d051.zip
Updated the use of tostring in xmlstream.py
Now uses the xmlns and stream parameters to reduce the number of extra xmlns attributes used in the logging output. Added self.default_ns to XMLStream just to be safe.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index ffaa6514..bf39bb33 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -73,6 +73,7 @@ class XMLStream(object):
self.use_ssl = False
self.use_tls = False
+ self.default_ns = ''
self.stream_header = "<stream>"
self.stream_footer = "</stream>"
@@ -304,7 +305,7 @@ class XMLStream(object):
def __spawnEvent(self, xmlobj):
"watching xmlOut and processes handlers"
#convert XML into Stanza
- logging.debug("RECV: %s" % tostring(xmlobj))
+ logging.debug("RECV: %s" % tostring(xmlobj, xmlns=self.default_ns, stream=self))
xmlobj = self.incoming_filter(xmlobj)
stanza_type = StanzaBase
for stanza_class in self.__root_stanza: