From 94f502d5e0fc7c87e656bd5ce22ab416f4fb2d16 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 00000000..be9a35a0 --- /dev/null +++ b/doc/changes/DM-46351.misc.md @@ -0,0 +1 @@ +Added a DEBUG-level log message into \_pipeline_graph 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 e17bdd77..19eed2ac 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),