summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorBrian Beggs <macdiesel@gmail.com>2010-06-03 10:02:55 -0400
committerBrian Beggs <macdiesel@gmail.com>2010-06-03 10:02:55 -0400
commit3f96226e29ee94eb718d01fa9cd052cfeb4fcfb5 (patch)
tree5c70ef4214f37bcfe189fa79a708a40a83aa4b07 /sleekxmpp/basexmpp.py
parent71d72f431fe4008c0075a458d7ef37ab41992617 (diff)
downloadslixmpp-3f96226e29ee94eb718d01fa9cd052cfeb4fcfb5.tar.gz
slixmpp-3f96226e29ee94eb718d01fa9cd052cfeb4fcfb5.tar.bz2
slixmpp-3f96226e29ee94eb718d01fa9cd052cfeb4fcfb5.tar.xz
slixmpp-3f96226e29ee94eb718d01fa9cd052cfeb4fcfb5.zip
Added additional logging when a plugin fails to import correctly.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index b78c255c..936b5d18 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -109,8 +109,9 @@ class basexmpp(object):
if hasattr(self.plugin[plugin], 'xep'):
xep = "(XEP-%s) " % self.plugin[plugin].xep
logging.debug("Loaded Plugin %s%s" % (xep, self.plugin[plugin].description))
- except:
+ except Exception, e:
logging.error("Unable to load plugin: %s" %(plugin) )
+ logging.exception(e)
def register_plugins(self):
"""Initiates all plugins in the plugins/__init__.__all__"""