Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16362

Don't log Jetty standalone execution as ERROR level in the XWiki Executor

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.11
    • Fix Version/s: 11.3
    • Component/s: Test Framework
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Right now we log Jetty standalone start as:

      20:16:24.912 [Exec Stream Pumper] INFO  o.x.t.i.XWikiLogOutputStream - Starting Jetty on port 8080, please wait...
      20:16:25.006 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/root/workspace/XWiki_xwiki-platform_master@tmp/withMaven6ad644a4/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/root/workspace/XWiki_xwiki-platform_master@tmp/withMaven6ad644a4" 
      20:16:25.521 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:25.520:INFO::main: Logging initialized @513ms to org.eclipse.jetty.util.log.StdErrLog
      20:16:25.844 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:25.844:INFO:oejs.Server:main: jetty-9.4.8.v20171121, build timestamp: 2017-11-21T21:27:37Z, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
      20:16:25.879 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:25.879:INFO:oejs.AbstractNCSARequestLog:main: Opened /root/workspace/XWiki_xwiki-platform_master/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/xwiki-platform-distribution-flavor-test-webstandards/target/xwiki-platform-distribution-flavor-jetty-hsqldb-11.3-SNAPSHOT/data/logs/2019_04_22.request.log
      20:16:25.886 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:25.886:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///root/workspace/XWiki_xwiki-platform_master/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/xwiki-platform-distribution-flavor-test-webstandards/target/xwiki-platform-distribution-flavor-jetty-hsqldb-11.3-SNAPSHOT/jetty/contexts/] at interval 0
      20:16:27.774 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:27.773:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
      20:16:27.774 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:27.774:INFO:oejs.session:main: No SessionScavenger set, using defaults
      20:16:27.776 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:27.776:INFO:oejs.session:main: Scavenging every 660000ms
      20:16:32.959 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:32,950 [main] INFO  iPropertiesConfigurationSource - loading xwiki.properties from file:/root/workspace/XWiki_xwiki-platform_master/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/xwiki-platform-distribution-flavor-test-webstandards/target/xwiki-platform-distribution-flavor-jetty-hsqldb-11.3-SNAPSHOT/webapps/xwiki/WEB-INF/xwiki.properties 
      20:16:33.117 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:33,116 [main] INFO  o.x.e.i.ServletEnvironment     - Using permanent directory [data] 
      20:16:40.045 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:40,044 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server... 
      20:16:40.049 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:40,049 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [data/solr] 
      20:16:42.481 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:42,481 [coreLoadExecutor-6-thread-1] WARN  o.a.s.c.SolrResourceLoader     - Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly. 
      20:16:45.463 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45,462 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server. 
      20:16:45.895 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.894:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@73846619{/xwiki,file:///root/workspace/XWiki_xwiki-platform_master/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/xwiki-platform-distribution-flavor-test-webstandards/target/xwiki-platform-distribution-flavor-jetty-hsqldb-11.3-SNAPSHOT/webapps/xwiki/,AVAILABLE}{/xwiki}
      20:16:45.923 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.923:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@31dd0e2e{/,file:///root/workspace/XWiki_xwiki-platform_master/xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/xwiki-platform-distribution-flavor-test-webstandards/target/xwiki-platform-distribution-flavor-jetty-hsqldb-11.3-SNAPSHOT/webapps/root/,AVAILABLE}{/root}
      20:16:45.944 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.943:INFO:oejs.AbstractConnector:main: Started ServerConnector@64fba3e6{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
      20:16:45.944 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.944:INFO:oejs.Server:main: Started @20937ms
      20:16:45.944 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.944:INFO:oxtjl.NotifyListener:main: ----------------------------------
      20:16:45.945 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.945:INFO:oxtjl.NotifyListener:main: Server started, you can now open http://773ea1edfe7a:8080/ in your browser to access your wiki.
      20:16:45.945 [Exec Stream Pumper] ERROR o.x.t.i.XWikiLogOutputStream - 2019-04-22 20:16:45.945:INFO:oxtjl.NotifyListener:main: ----------------------------------
      

      It's not really nice to log as "ERROR" and it's also not necessary to repeat the logging level.

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: