-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DM-46351: Add debug log in _pipeline_graph to ID task label #447
Conversation
94f502d
to
2fbfd18
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #447 +/- ##
=======================================
Coverage 83.51% 83.51%
=======================================
Files 97 97
Lines 11426 11427 +1
Branches 2192 2192
=======================================
+ Hits 9542 9543 +1
Misses 1529 1529
Partials 355 355 ☔ View full report in Codecov by Sentry. |
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something more verbose would be more helpful when disambiguating debug logs. Maybe something like Adding task with label: %s and class: %s to the pipeline graph
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current ticket produces output that looks like this:
lsst.pipe.base.pipeline_graph DEBUG: Task: photometricMatchVisit <class 'lsst.analysis.tools.tasks.photometricCatalogMatch.PhotometricCatalogMatchVisitTask'>
Your suggestion would produce output that looks like this:
lsst.pipe.base.pipeline_graph DEBUG: Adding task with label: photometricMatchVisit and class: <class 'lsst.analysis.tools.tasks.photometricCatalogMatch.PhotometricCatalogMatchVisitTask'> to the pipeline graph
Is the double "class" what you had in mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having discussed in-person, modifying to:
Adding task %s %s to the pipeline graph
2fbfd18
to
a6b2fbe
Compare
a6b2fbe
to
3eead01
Compare
Checklist
doc/changes