Skip to content

Commit

Permalink
[FIXED JENKINS-15540] Update logging levels in LogRotator
Browse files Browse the repository at this point in the history
1. Log all removals as FINE instead of FINER.
2. Log artifact removes as FINE.

Affects:
    hudson.tasks.LogRotator   perform()
  • Loading branch information
Wade Carpenter authored and Wade Carpenter committed Oct 20, 2012
1 parent 519e656 commit 3ae8594
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/main/java/hudson/tasks/LogRotator.java
Expand Up @@ -128,7 +128,7 @@ public void perform(Job<?,?> job) throws IOException, InterruptedException {
LOGGER.log(FINER,r.getFullDisplayName()+" is not GC-ed because it's the last stable build");
continue;
}
LOGGER.log(FINER,r.getFullDisplayName()+" is to be removed");
LOGGER.log(FINE,r.getFullDisplayName()+" is to be removed");
r.delete();
}
}
Expand All @@ -153,7 +153,7 @@ public void perform(Job<?,?> job) throws IOException, InterruptedException {
LOGGER.log(FINER,r.getFullDisplayName()+" is not GC-ed because it's still new");
continue;
}
LOGGER.log(FINER,r.getFullDisplayName()+" is to be removed");
LOGGER.log(FINE,r.getFullDisplayName()+" is to be removed");
r.delete();
}
}
Expand All @@ -173,6 +173,7 @@ public void perform(Job<?,?> job) throws IOException, InterruptedException {
LOGGER.log(FINER,r.getFullDisplayName()+" is not purged of artifacts because it's the last stable build");
continue;
}
LOGGER.log(FINE,r.getFullDisplayName()+" is to be purged of artifacts");
r.deleteArtifacts();
}
}
Expand All @@ -197,6 +198,7 @@ public void perform(Job<?,?> job) throws IOException, InterruptedException {
LOGGER.log(FINER,r.getFullDisplayName()+" is not purged of artifacts because it's still new");
continue;
}
LOGGER.log(FINE,r.getFullDisplayName()+" is to be purged of artifacts");
r.deleteArtifacts();
}
}
Expand Down

0 comments on commit 3ae8594

Please sign in to comment.