Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7612

Superfluous INFO messages in console output

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      During its work, the xUnit plugin prints an INFO message on the concole output for each file it processes.

      [xUnit] [INFO] - Converting ......xml

      That's rather annoying and I would like to have it stop doing that.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          Available with xUnit 1.15

          Show
          gbois Gregory Boissinot added a comment - Available with xUnit 1.15
          Hide
          tapiomtr tapiomtr added a comment - - edited

          I'l try that, but nothing find out from the xUnit logger view? xUnit 1.15 installed.
          Here is the content of the xUnit Logger view:

          <?xml version='1.0' encoding='UTF-8'?>
          <log>
          <name>xUnit Logger</name>
          <targets>
          <target>
          <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService</name>
          <level>-2147483648</level>
          </target>
          <target>
          <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationServic</name>
          <level>-2147483648</level>
          </target>
          </targets>
          </log>

          Show
          tapiomtr tapiomtr added a comment - - edited I'l try that, but nothing find out from the xUnit logger view? xUnit 1.15 installed. Here is the content of the xUnit Logger view: <?xml version='1.0' encoding='UTF-8'?> <log> <name>xUnit Logger</name> <targets> <target> <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitConversionService</name> <level>-2147483648</level> </target> <target> <name>com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationServic</name> <level>-2147483648</level> </target> </targets> </log>
          Hide
          gbois Gregory Boissinot added a comment -

          Sorry for not getting back to you for that before.
          The new logger is : com.thalesgroup.hudson.plugins.xunit.service.XUnitService

          Show
          gbois Gregory Boissinot added a comment - Sorry for not getting back to you for that before. The new logger is : com.thalesgroup.hudson.plugins.xunit.service.XUnitService
          Hide
          torbent torbent added a comment -

          I've been slow to convert the affected jobs to Jenkins, but I can confirm that the superfluous INFOs have gone. Haven't checked the new Logger.

          Show
          torbent torbent added a comment - I've been slow to convert the affected jobs to Jenkins, but I can confirm that the superfluous INFOs have gone. Haven't checked the new Logger.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Wolfgang Schell
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java
          http://jenkins-ci.org/commit/xunit-plugin/098d76f8012a33f93bec1531b9cfd47a08b6a5ae
          Log:
          Skip log message which spams log output on console

          As already described in old issue JENKINS-7612 (https://issues.jenkins-ci.org/browse/JENKINS-7612) we get a couple of hundred of lines of console output in our Jenkins build (basically one line per test class!):

          [xUnit] [INFO] - Converting '/var/buildlocal/jenkins/jobs/gerrit-ci-job/workspace@3/platform/target/test-results/myproject/TEST-com.company.Testcase12345.xml' .

          The workarounds mentioned in JENKINS-7612 didn't work for us (I guess they might have worked for some ancient version) and looking at the code of src/main/java/org/jenkinsci/plugins/xunit/service/XUnitLog.java its clear that there is no filtering. IMHO this log information provides no value at all so this change removes it to avoid spamming the build output.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wolfgang Schell Path: src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java http://jenkins-ci.org/commit/xunit-plugin/098d76f8012a33f93bec1531b9cfd47a08b6a5ae Log: Skip log message which spams log output on console As already described in old issue JENKINS-7612 ( https://issues.jenkins-ci.org/browse/JENKINS-7612 ) we get a couple of hundred of lines of console output in our Jenkins build (basically one line per test class!): [xUnit] [INFO] - Converting '/var/buildlocal/jenkins/jobs/gerrit-ci-job/workspace@3/platform/target/test-results/myproject/TEST-com.company.Testcase12345.xml' . The workarounds mentioned in JENKINS-7612 didn't work for us (I guess they might have worked for some ancient version) and looking at the code of src/main/java/org/jenkinsci/plugins/xunit/service/XUnitLog.java its clear that there is no filtering. IMHO this log information provides no value at all so this change removes it to avoid spamming the build output.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              torbent torbent
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: