From aed56cc5e54610ff68d0144b67458553a11dd3e0 Mon Sep 17 00:00:00 2001 From: LSmyrnaios Date: Thu, 14 Sep 2023 15:34:16 +0300 Subject: [PATCH] - Fix the "retryCount" appearing in log-messages. - Adjust the number and size of log files. - Update a dependency. --- build.gradle | 2 +- .../pdf_aggregation_statistics/services/StatsServiceImpl.java | 2 +- src/main/resources/logback-spring.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 444bf70..33c38cf 100644 --- a/build.gradle +++ b/build.gradle @@ -91,7 +91,7 @@ dependencies { implementation 'com.fasterxml.woodstox:woodstox-core:6.5.1' // https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-prometheus - runtimeOnly 'io.micrometer:micrometer-registry-prometheus:1.11.3' + runtimeOnly 'io.micrometer:micrometer-registry-prometheus:1.11.4' testImplementation 'org.springframework.security:spring-security-test' testImplementation "org.springframework.boot:spring-boot-starter-test" diff --git a/src/main/java/eu/openaire/pdf_aggregation_statistics/services/StatsServiceImpl.java b/src/main/java/eu/openaire/pdf_aggregation_statistics/services/StatsServiceImpl.java index 454934f..28ec12b 100644 --- a/src/main/java/eu/openaire/pdf_aggregation_statistics/services/StatsServiceImpl.java +++ b/src/main/java/eu/openaire/pdf_aggregation_statistics/services/StatsServiceImpl.java @@ -32,7 +32,7 @@ public class StatsServiceImpl implements StatsService { public boolean gatherNumberOfPayloadsPerDatasource(int retryCount) { if ( retryCount > 10 ) { - logger.error("Could not find the requested payload-type table in an non-merging state, after " + retryCount + " retries!"); + logger.error("Could not find the requested payload-type table in an non-merging state, after " + (retryCount -1) + " retries!"); return false; } diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 5831c76..e0b7406 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -6,11 +6,11 @@ logs/PDF_Aggregation_Statistics.%i.log.zip 1 - 20 + 10 - 50MB + 100MB