Skip to content

Commit 1474c8d

Browse files
committed
add debug logging to plugin registration
1 parent 9129def commit 1474c8d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎paths_cli/wizard/plugin_registration.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
from paths_cli.utils import get_installed_plugins
55
from paths_cli.plugin_management import NamespacePluginLoader
66

7+
import logging
8+
logger = logging.getLogger(__name__)
9+
710

811
class CategoryWizardPluginRegistrationError(Exception):
912
pass
1013

14+
1115
_CATEGORY_PLUGINS = {}
1216

17+
1318
def get_category_wizard(category):
1419
"""Get the wizard category object of the given name.
1520
@@ -65,13 +70,13 @@ def register_plugins(plugins):
6570
object_plugins.append(plugin)
6671

6772
for plugin in categories:
68-
# print("Registering " + str(plugin))
73+
logger.debug("Registering " + str(plugin))
6974
_register_category_plugin(plugin)
7075

7176
for plugin in object_plugins:
72-
# print("Registering " + str(plugin))
7377
category = _CATEGORY_PLUGINS[plugin.category]
74-
# print(category)
78+
logger.debug("Registering " + str(plugin))
79+
logger.debug("Category: " + str(category))
7580
category.register_plugin(plugin)
7681

7782
def register_installed_plugins():

0 commit comments

Comments
 (0)