log the configured storyboard url on failure This change is solely for debugging purposes: * Change log messages slightly * Write the Storyboard URL to the log when the plugin fails to connect. Change-Id: I714f326e57fd80b596cca89897838f113ed314e8
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardItsFacade.java b/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardItsFacade.java index 9f52be6..28ff6c8 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardItsFacade.java +++ b/src/main/java/com/googlesource/gerrit/plugins/its/storyboard/StoryboardItsFacade.java
@@ -58,14 +58,14 @@ public void addComment(final String issueId, final String comment) { if (!exists(issueId)) { - log.warn("Story " + issueId + " does not exist, nothing to update"); + log.warn("Storyboard item " + issueId + " does not exist"); return; } try { client.addComment(issueId, comment); } catch (IOException e) { - log.error("Error: could not add comment to issue " + issueId); + log.error("Error: unable to comment " + issueId); } log.info("Updated " + issueId + "with comment: " + comment); } @@ -91,7 +91,7 @@ try { info = client.getStory(issudeId); } catch (IOException e) { - log.error("Error: Storyboard is not accessible"); + log.error("Error: Storyboard is not accessible at: " + GERRIT_CONFIG_URL); } if (info != null) { log.debug("Story exists, info: " + info);