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

cmd-line tasks should log the command being executed

    Details

      Description

      When a command-line task is executed it would be very helpful to have the command logged. This helps diagnose issues with packages such as ci_hsc and validate_drp.

      This is trivial when the task is executed from the command line, e.g. add the following to ArgumentParser:

      log.info("Running: {}".format(" ".join(sys.arvg)))
      

      It is a bit trickier if the command is executed by code that calls CmdLineTask.parseAndRun directly; the arguments are readily available but determining the task will require introspection.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                rowen Russell Owen
                Reporter:
                rowen Russell Owen
                Reviewers:
                Hsin-Fang Chiang
                Watchers:
                Hsin-Fang Chiang, Paul Price, Russell Owen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel