Added additional logging when a plugin fails to import correctly.

This commit is contained in:
Brian Beggs 2010-06-03 10:02:55 -04:00
parent 71d72f431f
commit 3f96226e29

View file

@ -109,8 +109,9 @@ class basexmpp(object):
if hasattr(self.plugin[plugin], 'xep'): if hasattr(self.plugin[plugin], 'xep'):
xep = "(XEP-%s) " % self.plugin[plugin].xep xep = "(XEP-%s) " % self.plugin[plugin].xep
logging.debug("Loaded Plugin %s%s" % (xep, self.plugin[plugin].description)) logging.debug("Loaded Plugin %s%s" % (xep, self.plugin[plugin].description))
except: except Exception, e:
logging.error("Unable to load plugin: %s" %(plugin) ) logging.error("Unable to load plugin: %s" %(plugin) )
logging.exception(e)
def register_plugins(self): def register_plugins(self):
"""Initiates all plugins in the plugins/__init__.__all__""" """Initiates all plugins in the plugins/__init__.__all__"""