Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4359

Init log configured for deprecated class

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.5.1
    • Fix Version/s: 5.6
    • Component/s: core
    • Sprint:
      Saigon 114, Saigon 115
    • Story Points:
      2
    • Magnolia Release:
      5.6

      Description

      In the log4j.xml bundled in the core jar (which is used during initialization, before we load the one configured via properties), we still configure the following:

        <category name="info.magnolia.cms.servlets.MgnlServletContextListener">
          <priority value="DEBUG"/>
        </category>
      

      As far as I can tell, that class doesn't log anything anymore; conversely, info.magnolia.init.MagnoliaServletContextListener does (albeit nothing in debug).

      The reason I can across this is I was looking for the debug line printed by info.magnolia.init.DefaultMagnoliaInitPaths, so I have 3 suggestions:

      • Remove the log config for MgnlServletContextListener (it's useless), and
      • Replace it by info.magnolia.init in DEBUG level, or
      • Switch the log.debug("servername is {}, rootPath is {}, webapp is {}, contextPath is {}", new Object[]{serverName, rootPath, webappFolderName, contextPath}); line to INFO level.

        Attachments

          Activity

            People

            • Assignee:
              mgeljic Mikaël Geljić
              Reporter:
              gjoseph Magnolia International
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: