Skip to content

Commit

Permalink
Merge pull request #80 from lanwen/req_logging
Browse files Browse the repository at this point in the history
Additional request logging for form submitting in case of exception
  • Loading branch information
lanwen committed Sep 2, 2015
2 parents 3624130 + 7561722 commit 2d621d6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ public boolean configure(StaplerRequest req, JSONObject json) throws FormExcepti
try {
req.bindJSON(this, json);
} catch (Exception e) {
LOGGER.debug("Problem while submitting form for GitHub Plugin ({})", e.getMessage(), e);
LOGGER.trace("GH form data: {}", json.toString());
throw new FormException(
format("Mailformed GitHub Plugin configuration (%s)", e.getMessage()), e, "github-configuration");
}
Expand Down

0 comments on commit 2d621d6

Please sign in to comment.