Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-347

Add --quiet option to MediaFilterManager to disable debug/monitoring output

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2, 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Environment:
      All
    • Attachments:
      1
    • Comments:
      2
    • Documentation Status:
      Complete or Committed

      Description

      When running administrative processes under the unix "cron" facility you usually want them to generate output only in case of an error which needs the attention of a human, since any output from the process will cause a diagnostic email message to be sent to the owner of the job.

      The MetadataFilterManager's command-line app has no way to turn off its status output, which is really only useful for debugging or interactive progress monitoring. The attached patch adds a --quiet option to disable these messages.

      In practice, however, it's usually a lost cause to get the filters to run without any output because there are always some Items that fail. In the ideal case, however, a cron job would only generate diagnostic email when there is a new error that is worth the administrator's attention.

      If you prefer quiet by default and the --verbose option to enable them, add a comment. (There already is a --verbose but it doesn't do much so it could be changed to --debug or conflated with this option).

      Documentation would need a small update if this option is added.

        Attachments

          Activity

            People

            Assignee:
            lcs Larry Stone
            Reporter:
            lcs Larry Stone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: