mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
make logging PEP compliant
This commit is contained in:
parent
1735514364
commit
d8508cb741
@ -64,15 +64,15 @@ def load_plugins(name: str, module, cls):
|
||||
:return: class of the to-be-loaded plugin
|
||||
"""
|
||||
|
||||
logger.debug(f"Loading {name} plugins")
|
||||
logger.debug("Loading %s plugins", name)
|
||||
|
||||
plugins = get_plugins(module, cls)
|
||||
|
||||
if len(plugins) > 0:
|
||||
logger.info(f"Discovered {len(plugins)} {name} plugins:")
|
||||
logger.info("Discovered %i %s plugins:", len(plugins), name)
|
||||
|
||||
for ap in plugins:
|
||||
logger.debug(" - {ap}".format(ap=ap.PLUGIN_NAME))
|
||||
logger.debug(" - %s", ap.PLUGIN_NAME)
|
||||
|
||||
return plugins
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user