Skip to content

Commit e6fc2f8

Browse files
committed
Change several places from info to debug log level
1 parent 3f4dbed commit e6fc2f8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/nu/studer/teamcity/buildscan/internal/LogIteratingBuildScanLookup.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public BuildScanReferences getBuildScansForBuild(@NotNull SBuild build) {
3131
return BuildScanReferences.of();
3232
}
3333

34-
LOGGER.info(String.format("Parsing build log for build scan urls of build id: %s", build.getBuildId()));
34+
LOGGER.debug(String.format("Parsing build log for build scan urls of build id: %s", build.getBuildId()));
3535

3636
List<BuildScanReference> buildScans = new ArrayList<>();
3737
boolean foundPublishMessage = false;

src/main/java/nu/studer/teamcity/buildscan/internal/slack/BuildScanHttpRetriever.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private BuildScanPayload doRetrieve() throws IOException {
8989

9090
// log response code
9191
int responseCode = con.getResponseCode();
92-
LOGGER.info("Invoking build scan data end-point returned response code: " + responseCode);
92+
LOGGER.debug("Invoking build scan data end-point returned response code: " + responseCode);
9393

9494
return buildScanPayload;
9595
}

src/main/java/nu/studer/teamcity/buildscan/internal/slack/SlackHttpNotifier.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void notify(@NotNull SlackPayload payload) throws IOException {
5959

6060
// log response code
6161
int responseCode = con.getResponseCode();
62-
LOGGER.info("Invoking Slack webhook returned response code: " + responseCode);
62+
LOGGER.debug("Invoking Slack webhook returned response code: " + responseCode);
6363
}
6464

6565
private static void copy(@NotNull InputStream in, @NotNull OutputStream out) throws IOException {

src/main/java/nu/studer/teamcity/buildscan/internal/slack/SlackIntegration.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private List<ListenableFuture<Optional<BuildScanPayload>>> retrieveBuildScansAsy
8888
}
8989

9090
private Optional<BuildScanPayload> retrieveBuildScan(@NotNull BuildScanReference buildScan, @NotNull TeamCityConfiguration teamCityConfiguration) throws IOException {
91-
LOGGER.info("Retrieving build scan data: " + buildScan.getUrl());
91+
LOGGER.debug("Retrieving build scan data: " + buildScan.getUrl());
9292
BuildScanHttpRetriever retriever = BuildScanHttpRetriever.forUrl(toScanDataUrl(buildScan), getCredentials(buildScan, teamCityConfiguration));
9393
BuildScanPayload payload = retriever.retrieve();
9494
return Optional.of(payload).filter(p -> p.state.equals("complete"));
@@ -129,7 +129,7 @@ private ListenableFuture<Void> notifySlackAsync(@NotNull BuildScanReferences bui
129129
}
130130

131131
private Void notifySlack(@NotNull BuildScanReferences buildScans, @NotNull Map<String, BuildScanPayload> buildScanPayloads, @NotNull URL webhookUrl, @NotNull TeamCityBuildStatus teamCityBuildStatus, @NotNull TeamCityConfiguration teamCityConfiguration) throws IOException {
132-
LOGGER.info("Notifying Slack via webhook: " + webhookUrl);
132+
LOGGER.debug("Notifying Slack via webhook: " + webhookUrl);
133133
SlackHttpNotifier notifier = SlackHttpNotifier.forWebhook(webhookUrl);
134134
notifier.notify(payloadFactory.from(buildScans, buildScanPayloads, teamCityBuildStatus, teamCityConfiguration));
135135
return null;
@@ -156,7 +156,7 @@ private LoggingCallback(String action) {
156156

157157
@Override
158158
public void onSuccess(@Nullable Object result) {
159-
LOGGER.info(action + " succeeded");
159+
LOGGER.debug(action + " succeeded");
160160
}
161161

162162
@Override

0 commit comments

Comments
 (0)