Skip to content

Commit

Permalink
Merge pull request #2560 from cta-observatory/remove_verbose_plugin_info
Browse files Browse the repository at this point in the history
Use debug logging for plugin loading details
  • Loading branch information
maxnoe authored Jun 3, 2024
2 parents 4bd1abd + 3ab94a1 commit 2b70207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changes/2560.maintenance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
made plugin detection less verbose in logs: DEBUG level used instead of INFO
4 changes: 2 additions & 2 deletions src/ctapipe/core/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ def detect_and_import_plugins(group):
"""detect and import plugins with given prefix,"""
modules = set()
for entry_point in installed_entry_points.select(group=group):
log.info("Loading %s plugin: %s", group, entry_point.value)
log.debug("Loading %s plugin: %s", group, entry_point.value)
try:
plugin = entry_point.load()
if plugin.__module__.split(".")[0] != "ctapipe":
modules.add(plugin.__module__)
log.info("Entrypoint provides: %s", plugin)
log.debug("Entrypoint provides: %s", plugin)
except Exception:
log.exception("Error loading %s plugin: '%s'", group, entry_point.value)

Expand Down

0 comments on commit 2b70207

Please sign in to comment.