mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
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.
This commit is contained in:
parent
0d0c044a68
commit
4d1f071f83
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue