From 9eb22f219a4404e68a74f2d0de6a6818e34d6e50 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 30 Apr 2024 15:25:31 +0200 Subject: [PATCH] SCANCLI-127 Adjust logs --- src/main/java/org/sonarsource/scanner/cli/Main.java | 4 ++-- 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 -- 2.39.5