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

include edition and version in logged uptime message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.1
    • Fix Version/s: 3.14.0
    • Component/s: Logging
    • Labels:
    • Story Points:
      1

      Description

      When Nexus is shutdown, the Uptime is logged - example:

      2018-01-08 02:01:03,228+0800 INFO  [Thread-6]  *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Uptime: 22 hours, 21 minutes, 28 seconds and 576 milliseconds
      

      If the shutdown immediately precedes a Nexus upgrade, it is useful to understand what edition and version was shut down immediately preceding the upgrade.

      Expected

      • include the last active edition and version that was shutdown, in the uptime message:

      Example: Uptime: 22 hours, 21 minutes, 28 seconds and 576 milliseconds (nexus-pro-edition/3.7.1.02)

      • make sure that if there is a license change during the last run of the server, the reported edition accurately reflects that last change

      Note: The edition version string example suggested here is the same one seen during these messages on startup:

      2018-01-08 02:13:22,253+0800 INFO  [jetty-main-1]  *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Initializing
      2018-01-08 02:13:22,263+0800 INFO  [jetty-main-1]  *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Installing: nexus-pro-edition/3.7.1.02
      2018-01-08 02:13:23,448+0800 INFO  [jetty-main-1]  *SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Installed: nexus-pro-edition/3.7.1.02
      

      Another format of edition version could be acceptable as well, open to suggestions.

        Attachments

          Activity

            People

            Assignee:
            mjohnson Matt Johnson
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            NXRM - Morpheus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title