Only do the debug log if types registered.
This commit is contained in:
parent
5522a087e1
commit
d06cd91df6
@ -375,8 +375,9 @@ class Init(object):
|
|||||||
mod = importer.import_module(mod_locs[0])
|
mod = importer.import_module(mod_locs[0])
|
||||||
mod = handlers.fixup_handler(mod)
|
mod = handlers.fixup_handler(mod)
|
||||||
types = c_handlers.register(mod)
|
types = c_handlers.register(mod)
|
||||||
LOG.debug("Added custom handler for %s from %s", types,
|
if types:
|
||||||
fname)
|
LOG.debug("Added custom handler for %s from %s",
|
||||||
|
types, fname)
|
||||||
except Exception:
|
except Exception:
|
||||||
util.logexc(LOG, "Failed to register handler from %s",
|
util.logexc(LOG, "Failed to register handler from %s",
|
||||||
fname)
|
fname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user