Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-34242

Elapsed time logged for scheduled tasks is using a time unit that is not human readable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.40.1
    • Fix Version/s: 3.42.0
    • Component/s: Logging
    • Labels:
    • Notability:
      n/a

      Description

      This log line was noticed in a customer log:

      2022-07-20 17:53:11,718+0200 INFO [task-logging-0] *SYSTEM org.sonatype.nexus.blobstore.restore.orient.OrientRestoreMetadataTask - ---- Elapsed time: 1.278 d, processed: 1375757, un-deleted: 2 ----

      The 1.278 d logged is not a useful human metric. nexus.log file audience are humans. A human cannot parse 1.278 days into days hours minutes seconds.

      Expected

      Log Elapsed time using a human time unit in a standard format like for example:

      1 d, 22 h, 3 m and 4 s

      or https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm

      or even better include started AND elapsed in human readable form because to make the context easier to undertstand.

      Started: 2022-07-20 12:59:33 , Elapsed: ....

        Attachments

          Activity

            People

            Assignee:
            sshamrai Sergii Shamrai
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Sergii Shamrai Sergii Shamrai
            Owner:
            Sergii Shamrai Sergii Shamrai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title