Skip to content

Commit

Permalink
[FIXED JENKINS-29888] Handling all exceptions returned by logRotator
Browse files Browse the repository at this point in the history
  • Loading branch information
Otmane TAZI committed Oct 5, 2015
1 parent 157cd10 commit 1a5d57f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/main/java/hudson/model/Run.java
Expand Up @@ -1803,11 +1803,9 @@ protected final void execute(@Nonnull RunExecution job) {

try {
getParent().logRotate();
} catch (IOException e) {
LOGGER.log(Level.SEVERE, "Failed to rotate log",e);
} catch (InterruptedException e) {
LOGGER.log(Level.SEVERE, "Failed to rotate log",e);
}
} catch (Exception e) {
LOGGER.log(Level.SEVERE, "Failed to rotate log",e);
}
} finally {
onEndBuilding();
}
Expand Down

0 comments on commit 1a5d57f

Please sign in to comment.