Skip to content

Commit

Permalink
Merge pull request #1790 from tototoman/master
Browse files Browse the repository at this point in the history
[FIXED JENKINS-29888] - Handling all LogRotator exceptions
  • Loading branch information
oleg-nenashev committed Oct 6, 2015
2 parents 2361988 + 1a5d57f commit 876e8e2
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 876e8e2

Please sign in to comment.