summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 8af90a0f..b8c80ffa 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
@@ -379,7 +378,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__())