diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-07-26 18:13:54 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-07-26 18:13:54 -0700 |
commit | 2b6454786ace5f9cc585fd30f1337809f2107bf8 (patch) | |
tree | 585768e41d2f59463c9f79592370a4c60f8a134a /sleekxmpp/stanza/rootstanza.py | |
parent | a349a2a317a6ca7152e0adb21d5fabbfd632ebaf (diff) | |
parent | c8989c04f3675235e3ae730cb240e2154b5d9e76 (diff) | |
download | slixmpp-2b6454786ace5f9cc585fd30f1337809f2107bf8.tar.gz slixmpp-2b6454786ace5f9cc585fd30f1337809f2107bf8.tar.bz2 slixmpp-2b6454786ace5f9cc585fd30f1337809f2107bf8.tar.xz slixmpp-2b6454786ace5f9cc585fd30f1337809f2107bf8.zip |
Merge branch 'experimental' of git@github.com:fritzy/SleekXMPP into experimental
Diffstat (limited to 'sleekxmpp/stanza/rootstanza.py')
-rw-r--r-- | sleekxmpp/stanza/rootstanza.py | 2 |
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 |