summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-07-26 21:02:25 -0400
committerLance Stout <lancestout@gmail.com>2010-07-26 21:02:25 -0400
commitc8989c04f3675235e3ae730cb240e2154b5d9e76 (patch)
tree5b20b21ae2575cb76dae32e985aa20484bdab76f /sleekxmpp/stanza
parent241aba8c767ded0c931b2d70ac223eb81f174f1c (diff)
downloadslixmpp-c8989c04f3675235e3ae730cb240e2154b5d9e76.tar.gz
slixmpp-c8989c04f3675235e3ae730cb240e2154b5d9e76.tar.bz2
slixmpp-c8989c04f3675235e3ae730cb240e2154b5d9e76.tar.xz
slixmpp-c8989c04f3675235e3ae730cb240e2154b5d9e76.zip
Replaced traceback calls to use logging.exception where applicable.
Diffstat (limited to 'sleekxmpp/stanza')
-rw-r--r--sleekxmpp/stanza/rootstanza.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/stanza/rootstanza.py b/sleekxmpp/stanza/rootstanza.py
index e568b62b..3bae1f0d 100644
--- a/sleekxmpp/stanza/rootstanza.py
+++ b/sleekxmpp/stanza/rootstanza.py
@@ -9,6 +9,7 @@ from .. xmlstream.stanzabase import StanzaBase
from xml.etree import cElementTree as ET
from . error import Error
from .. exceptions import XMPPError
+import logging
import traceback
import sys
@@ -29,6 +30,7 @@ class RootStanza(StanzaBase):
self['error']['text'] = "SleekXMPP got into trouble."
else:
self['error']['text'] = traceback.format_tb(e.__traceback__)
+ logging.exception('Error handling {%s}%s stanza' % (self.namespace, self.name))
self.send()
# all jabber:client root stanzas should have the error plugin