From 1da4fa9c342db1de402f1a088d97305465893e8d Mon Sep 17 00:00:00 2001 From: frenchu Date: Fri, 1 Jun 2018 21:05:49 +0200 Subject: [PATCH] Log messages refienement. Closes #183 --- .../java/org/sonar/plugins/stash/StashRequestFacade.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/sonar/plugins/stash/StashRequestFacade.java b/src/main/java/org/sonar/plugins/stash/StashRequestFacade.java index 31a5c45a..3bc41b66 100644 --- a/src/main/java/org/sonar/plugins/stash/StashRequestFacade.java +++ b/src/main/java/org/sonar/plugins/stash/StashRequestFacade.java @@ -147,7 +147,7 @@ public void postSonarQubeReport(PullRequestRef pr, try { postCommentPerIssue(pr, issueReport, diffReport, stashClient); - LOGGER.info("New SonarQube issues have been reported to Stash."); + LOGGER.info("New SonarQube issues (if any) have been reported to Stash."); } catch (StashClientException | StashConfigurationException e) { LOGGER.error("Unable to link SonarQube issues to Stash: {}", e.getMessage()); @@ -225,7 +225,7 @@ private void postIssueComment(PullRequestRef pr, .postCommentLineOnPullRequest(pr, commentContent, path, line, type); LOGGER - .debug("Comment \"{}\" has been created ({}) on file {} ({})", issueKey, type, path, line); + .info("Comment \"{}\" has been created ({}) on file {} ({})", issueKey, type, path, line); // Create task linked to the comment if configured @@ -236,8 +236,8 @@ private void postIssueComment(PullRequestRef pr, stashClient.postTaskOnComment(issue.message(), comment.getId()); - if (LOGGER.isDebugEnabled()) { - LOGGER.debug("Comment \"{}\" has been linked to a Stash task", comment.getId()); + if (LOGGER.isInfoEnabled()) { + LOGGER.info("Comment \"{}\" has been linked to a Stash task", comment.getId()); } } }