From 3f96226e29ee94eb718d01fa9cd052cfeb4fcfb5 Mon Sep 17 00:00:00 2001 From: Brian Beggs Date: Thu, 3 Jun 2010 10:02:55 -0400 Subject: Added additional logging when a plugin fails to import correctly. --- sleekxmpp/basexmpp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__""" -- cgit v1.2.3