diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-04-30 15:25:31 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2024-05-03 13:07:43 +0200 |
commit | 9eb22f219a4404e68a74f2d0de6a6818e34d6e50 (patch) | |
tree | a4afd4faa9883d582f0a690d30914c4569cf179b | |
parent | 4377edea5cab1ad59336554bd8e4c77b80567ec4 (diff) | |
download | sonar-scanner-cli-9eb22f219a4404e68a74f2d0de6a6818e34d6e50.tar.gz sonar-scanner-cli-9eb22f219a4404e68a74f2d0de6a6818e34d6e50.zip |
SCANCLI-127 Adjust logs
-rw-r--r-- | src/main/java/org/sonarsource/scanner/cli/Main.java | 4 | ||||
-rw-r--r-- | src/test/java/org/sonarsource/scanner/cli/MainTest.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/sonarsource/scanner/cli/Main.java b/src/main/java/org/sonarsource/scanner/cli/Main.java index 787cc80..f9a613d 100644 --- a/src/main/java/org/sonarsource/scanner/cli/Main.java +++ b/src/main/java/org/sonarsource/scanner/cli/Main.java @@ -88,10 +88,10 @@ public class Main { private void logServerType(ScannerEngineFacade engine) { if (engine.isSonarCloud()) { - logger.info("Analyzing on SonarCloud"); + logger.info("Communicating with SonarCloud"); } else { String serverVersion = engine.getServerVersion(); - logger.info(String.format("Analyzing on SonarQube server %s", serverVersion)); + logger.info(String.format("Communicating with SonarQube Server %s", serverVersion)); } } diff --git a/src/test/java/org/sonarsource/scanner/cli/MainTest.java b/src/test/java/org/sonarsource/scanner/cli/MainTest.java index 6b8099d..3169142 100644 --- a/src/test/java/org/sonarsource/scanner/cli/MainTest.java +++ b/src/test/java/org/sonarsource/scanner/cli/MainTest.java @@ -247,7 +247,7 @@ public class MainTest { Main main = new Main(exit, cli, conf, scannerEngineBootstrapperFactory, logs); main.analyze(); - verify(logs).info("Analyzing on SonarQube server 5.5"); + verify(logs).info("Communicating with SonarQube Server 5.5"); } @Test @@ -259,7 +259,7 @@ public class MainTest { Main main = new Main(exit, cli, conf, scannerEngineBootstrapperFactory, logs); main.analyze(); - verify(logs).info("Analyzing on SonarCloud"); + verify(logs).info("Communicating with SonarCloud"); } @Test |