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

Ratchet back PeriodicReincarnation logging or run periodicity

    Details

    • Similar Issues:

      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?

        Attachments

          Activity

          Hide
          boev Yordan Boev added a comment -

          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.

          Show
          boev Yordan Boev added a comment - 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.
          Hide
          dankirkd Daniel Kirkdorffer added a comment -

          Good to know. Not sure when I can upgrade Jenkins itself though to pick up the improvement.

          Show
          dankirkd Daniel Kirkdorffer added a comment - Good to know. Not sure when I can upgrade Jenkins itself though to pick up the improvement.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Stefan Brausch
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/periodicreincarnation/PeriodicReincarnation.java
          http://jenkins-ci.org/commit/periodic-reincarnation-plugin/808198ab360b31dbcd44ce03a071970ec3763078
          Log:
          [FIXED JENKINS-22132] Remove spam entries from log file

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Brausch Path: pom.xml src/main/java/org/jenkinsci/plugins/periodicreincarnation/PeriodicReincarnation.java http://jenkins-ci.org/commit/periodic-reincarnation-plugin/808198ab360b31dbcd44ce03a071970ec3763078 Log: [FIXED JENKINS-22132] Remove spam entries from log file

            People

            • Assignee:
              stefanbrausch Stefan Brausch
              Reporter:
              dankirkd Daniel Kirkdorffer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: