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

asset dates are not logged using millisecond precision

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.32.0
    • Fix Version/s: None
    • Component/s: Logging
    • Labels:
    • Notability:
      n/a

      Description

      Often the nexus.log will contain toString representations of blobstore assets and components. Any dates associated with these assets are logged in this format, without millisecond precision:

      Fri Jul 30 16:57:54 HKT 2021

      Example:

      2021-07-31 00:18:00,152+0800 INFO [quartz-15-thread-1] *SYSTEM org.sonatype.nexus.internal.script.ScriptTask - Deleting asset: Asset{metadata=AttachedEntityMetadata{schema=asset, document=asset#171:83000

      {bucket:#116:2,format:pypi,last_updated:Fri Jul 30 16:57:54 HKT 2021,attributes:[5],component:null,name:simple/qpython/,size:1028,content_type:text/html,created_by:example,created_by_ip:128.30.128.31,blob_ref:ProxyRepositories@F8CD8884-83D2AADC-98CA2FCD-A2F0DE1F-750207E2:58cc9f92-9e72-49a1-a8d2-8938a94ac1a5,last_downloaded:Fri Jul 30 16:57:54 HKT 2021,blob_created:Wed Jul 28 00:44:26 HKT 2021,blob_updated:Wed Jul 28 00:44:26 HKT 2021}

      v37}, name=simple/qpython/} from repository: RepositoryImpl$$EnhancerByGuice$$664586060

      {type=proxy, format=pypi, name='n3oss-pypi-hosted'}

      Problem

      When diagnosing issues by examining logs ( like blob not found messages for example ) there are situations where knowing the milliseconds precision of the date stamp would be helpful so that concurrency issues within the same millisecond between threads can be more easily diagnosed.

      Expected

      When logging date stamps on objects, include enough precision so that the millisecond is also logged as well.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Michael Oliverio Michael Oliverio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title