print the traceback if we can't load a plugin for some reason

This commit is contained in:
Tom Nichols 2010-06-28 11:03:46 -04:00
parent 4fccd77685
commit 898f96f265

View file

@ -110,7 +110,7 @@ class basexmpp(object):
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:
logging.error("Unable to load plugin: %s" %(plugin) ) logging.exception("Unable to load plugin: %s", plugin )
def register_plugins(self): def register_plugins(self):
"""Initiates all plugins in the plugins/__init__.__all__""" """Initiates all plugins in the plugins/__init__.__all__"""