diff options
author | Lance Stout <lancestout@gmail.com> | 2010-07-26 21:02:25 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-07-26 21:02:25 -0400 |
commit | c8989c04f3675235e3ae730cb240e2154b5d9e76 (patch) | |
tree | 5b20b21ae2575cb76dae32e985aa20484bdab76f /sleekxmpp/xmlstream/stanzabase.py | |
parent | 241aba8c767ded0c931b2d70ac223eb81f174f1c (diff) | |
download | slixmpp-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/xmlstream/stanzabase.py')
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 66a08e49..ab054073 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -7,7 +7,6 @@ """ from xml.etree import cElementTree as ET import logging -import traceback import sys import weakref import copy @@ -400,7 +399,7 @@ class StanzaBase(ElementBase): pass def exception(self, e): - logging.error(traceback.format_tb(e)) + logging.exception('Error handling {%s}%s stanza' % (self.namespace, self.name)) def send(self): self.stream.sendRaw(self.__str__()) |