Skip to content

Commit

Permalink
Merge pull request #406 from jonsten/truncatedLogging
Browse files Browse the repository at this point in the history
Lower logging level of "Notifying BuildStarted" et.al. send to Jenkins log.
  • Loading branch information
rsandell authored Jan 17, 2020
2 parents c328567 + 58f5c2d commit 379fa9f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public void buildStarted(Run build, TaskListener taskListener,
parameterExpander.getBuildStartedCommand(build, taskListener, (ChangeBasedEvent)event, stats);
if (command != null) {
if (!command.isEmpty()) {
logger.info("Notifying BuildStarted to gerrit: {}", command);
logger.debug("Notifying BuildStarted to gerrit: {}", command);
cmdRunner.sendCommand(command);
GerritTriggeredBuildListener.fireOnStarted(event, command);
} else {
logger.info("BuildStarted command is empty. Gerrit will not be notified of BuildStarted");
logger.debug("BuildStarted command is empty. Gerrit will not be notified of BuildStarted");
}
} else {
logger.error("Something wrong during parameter extraction. "
Expand All @@ -114,11 +114,11 @@ public void buildCompleted(MemoryImprint memoryImprint, TaskListener listener) {

if (command != null) {
if (!command.isEmpty()) {
logger.info("Notifying BuildCompleted to gerrit: {}", command);
logger.debug("Notifying BuildCompleted to gerrit: {}", command);
cmdRunner.sendCommand(command);
GerritTriggeredBuildListener.fireOnCompleted(memoryImprint, command);
} else {
logger.info("BuildCompleted command is empty. Gerrit will not be notified of BuildCompleted");
logger.debug("BuildCompleted command is empty. Gerrit will not be notified of BuildCompleted");
}
} else {
logger.error("Something wrong during parameter extraction. "
Expand Down

0 comments on commit 379fa9f

Please sign in to comment.