Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #184 from frenchu/feature/183-logging-improvement
Browse files Browse the repository at this point in the history
Log messages refienement.
  • Loading branch information
t-8ch authored Aug 3, 2018
2 parents 0fc7f94 + 1da4fa9 commit 7ac1bd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/sonar/plugins/stash/StashRequestFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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

Expand All @@ -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());
}
}
}
Expand Down

0 comments on commit 7ac1bd7

Please sign in to comment.