Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10034

How to handle logging for a repeatedly-run subtask?

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: log
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      How should one handle limiting the logging of a subtask when it is run many times?

      This arose in DM-7611: a task can be run either once (in which case it generates a limited amount of useful INFO logging), or be run as a subtask, in which case it is run many (>100) times. In the latter case, the INFO logging is not as useful, and the calling task squashes the INFO logging of the subtask before calling its `run` method, but that could be dangerous if the user actually wants to get all of the INFO messages.

      Here is the discussion in the PR:
      https://github.com/lsst/ip_diffim/pull/53#discussion_r108770375

      What is the correct way to handle this?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                reiss David Reiss
                Watchers:
                David Reiss, Fritz Mueller, Hsin-Fang Chiang, John Parejko, Kian-Tat Lim, Simon Krughoff
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel