- Fix the "retryCount" appearing in log-messages.

- Adjust the number and size of log files.
- Update a dependency.
This commit is contained in:
Lampros Smyrnaios 2023-09-14 15:34:16 +03:00
parent fb04c8df2f
commit aed56cc5e5
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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;
}

View File

@ -6,11 +6,11 @@
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>logs/PDF_Aggregation_Statistics.%i.log.zip</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>20</maxIndex>
<maxIndex>10</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>50MB</maxFileSize>
<maxFileSize>100MB</maxFileSize>
</triggeringPolicy>
<encoder>