Skip to content

Commit

Permalink
Merge pull request #2 from sit/error-reporting
Browse files Browse the repository at this point in the history
JenkinsJobManagement: Include exception in failure logs
  • Loading branch information
quidryan committed Sep 26, 2012
2 parents 48cd9b7 + ae195a7 commit f3bf414
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private boolean updateExistingJob(AbstractProject<?, ?> project, String config)
project.updateByXml(streamSource);
created = true;
} catch (IOException ioex) {
LOGGER.log(Level.WARNING, String.format("Error writing updated project to file."));
LOGGER.log(Level.WARNING, String.format("Error writing updated project to file."), ioex);
created = false;
}
return created;
Expand All @@ -146,7 +146,7 @@ private boolean createNewJob(String jobName, String config) {
LOGGER.log(Level.WARNING, "Unsupported encoding used in config. Should be UTF-8.");
created = false;
} catch (IOException ioex) {
LOGGER.log(Level.WARNING, String.format("Error writing config for new job %s.", jobName));
LOGGER.log(Level.WARNING, String.format("Error writing config for new job %s.", jobName), ioex);
created = false;
}
return created;
Expand Down

0 comments on commit f3bf414

Please sign in to comment.