jenkinsci / winstone

Patched winstone used in Jenkins
https://jenkins.io
Other
88 stars 72 forks source link

[JENKINS-73616] Log spam from `AnnotationParser#parseClass` #409

Closed basil closed 1 month ago

basil commented 1 month ago

Context

See JENKINS-73616.

Problem

Users have complained that there are new warnings emitted on Jenkins startup.

Evaluation

These duplicates are known to the project and ignored in https://github.com/jenkinsci/jenkins/blob/c5c69abd2d346a694c29b3e5f5d3991d94c38556/test/src/test/java/jenkins/ClassPathTest.java because we cannot upgrade jansi without also upgrading Groovy as described in https://github.com/jenkinsci/jenkins/pull/5184#pullrequestreview-570261350 (though I doubt anyone has actually tried?).

Solution

Since these warnings are a false positive, turn up the log level for this class from the default level to SEVERE so that this log statement is not printed.

Testing done

Reproduced the issue with java -jar jenkins.war and could no longer reproduce after this PR.