From 2fbfd182c9d51dae40436802ead5abcb88beb023 Mon Sep 17 00:00:00 2001 From: Lee Kelvin Date: Mon, 16 Sep 2024 07:36:59 -0700 Subject: [PATCH] Add debug log in _pipeline_graph to ID task label --- doc/changes/DM-46351.misc.md | 1 + python/lsst/pipe/base/pipeline_graph/_pipeline_graph.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 doc/changes/DM-46351.misc.md diff --git a/doc/changes/DM-46351.misc.md b/doc/changes/DM-46351.misc.md new file mode 100644 index 000000000..d5bd0f01b --- /dev/null +++ b/doc/changes/DM-46351.misc.md @@ -0,0 +1 @@ +Added a DEBUG-level log message into `_pipeline_graph.py` to signify which task is being run. diff --git a/python/lsst/pipe/base/pipeline_graph/_pipeline_graph.py b/python/lsst/pipe/base/pipeline_graph/_pipeline_graph.py index e17bdd775..19eed2ac4 100644 --- a/python/lsst/pipe/base/pipeline_graph/_pipeline_graph.py +++ b/python/lsst/pipe/base/pipeline_graph/_pipeline_graph.py @@ -712,6 +712,7 @@ def add_task( label = task_class._DefaultName if config is None: config = task_class.ConfigClass() + _LOG.debug("Task: %s %s", label, task_class) task_node = TaskNode._from_imported_data( key=NodeKey(NodeType.TASK, label), init_key=NodeKey(NodeType.TASK_INIT, label),