From 65dbddb6b67c0a6ad1c63d7e0f3a389cf20d359f Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 9 Dec 2011 20:57:08 -0800 Subject: Fix logging when loading plugins. --- sleekxmpp/basexmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index ee0ae988..11e787ad 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -227,14 +227,14 @@ class BaseXMPP(XMLStream): self.plugin[plugin] = getattr(module, plugin)(self, pconfig) # Let XEP/RFC implementing plugins have some extra logging info. - spec = '(CUSTOM) ' + spec = '(CUSTOM) %s' if self.plugin[plugin].xep: spec = "(XEP-%s) " % self.plugin[plugin].xep elif self.plugin[plugin].rfc: spec = "(RFC-%s) " % self.plugin[plugin].rfc desc = (spec, self.plugin[plugin].description) - log.debug("Loaded Plugin %s", desc) + log.debug("Loaded Plugin %s %s" % desc) except: log.exception("Unable to load plugin: %s", plugin) -- cgit v1.2.3