Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Is it possible to reduce the logging from this plugin?
Mar 11, 2014 9:44:13 AM INFO hudson.model.AsyncPeriodicWork$1 run
Started PeriodicReincarnation
Mar 11, 2014 9:44:13 AM INFO hudson.model.AsyncPeriodicWork$1 run
Finished PeriodicReincarnation. 0 ms
It runs every minute, producing this log output.
If not possible, is there a way to at least configure it to run less often?
It is possible now. There was a flaw in the AsyncPeriodicWork class from Jenkins. I have made some changes to it so that classes that extend it can override methods that set logging levels in order to reduce unwanted logging messages. The change is already in the newer versions of Jenkins.
PeriodicReincarnation should just override getNormalLoggingLevel() and getNormalLoggingLevel() from https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AsyncPeriodicWork.java in order to stop the "every-minute-spam" in the console. Jenkins version should be at least 1.551 for this to work.