Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JenkinsJobManagement: Include exception in failure logs #2

Merged
merged 1 commit into from
Sep 26, 2012

Conversation

sit
Copy link

@sit sit commented Sep 25, 2012

Simplify the process of adding new features by including
the full stack trace in the logs. This helps make clear
what has gone wrong with the generated syntax.

Simplify the process of adding new features by including
the full stack trace in the logs. This helps make clear
what has gone wrong with the generated syntax.
@sit sit closed this Sep 25, 2012
@sit sit reopened this Sep 25, 2012
@@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had that in there before, but thought end users wouldn't want it. But I'm guessing that we're nascent enough that should be in there to help people develop it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it's true that such reports are really verbose, as a developer I always find it helpful to know what actually went wrong. :-) Users will appreciate being able to submit more useful bug reports perhaps.

quidryan added a commit that referenced this pull request Sep 26, 2012
JenkinsJobManagement: Include exception in failure logs
@quidryan quidryan merged commit f3bf414 into jenkinsci:master Sep 26, 2012
sanicheev pushed a commit to sanicheev/job-dsl-plugin that referenced this pull request Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants