- Fix the "retryCount" appearing in log-messages.
- Adjust the number and size of log files. - Update a dependency.
This commit is contained in:
parent
fb04c8df2f
commit
aed56cc5e5
|
@ -91,7 +91,7 @@ dependencies {
|
||||||
implementation 'com.fasterxml.woodstox:woodstox-core:6.5.1'
|
implementation 'com.fasterxml.woodstox:woodstox-core:6.5.1'
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-prometheus
|
// 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.security:spring-security-test'
|
||||||
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
testImplementation "org.springframework.boot:spring-boot-starter-test"
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class StatsServiceImpl implements StatsService {
|
||||||
public boolean gatherNumberOfPayloadsPerDatasource(int retryCount)
|
public boolean gatherNumberOfPayloadsPerDatasource(int retryCount)
|
||||||
{
|
{
|
||||||
if ( retryCount > 10 ) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
||||||
<fileNamePattern>logs/PDF_Aggregation_Statistics.%i.log.zip</fileNamePattern>
|
<fileNamePattern>logs/PDF_Aggregation_Statistics.%i.log.zip</fileNamePattern>
|
||||||
<minIndex>1</minIndex>
|
<minIndex>1</minIndex>
|
||||||
<maxIndex>20</maxIndex>
|
<maxIndex>10</maxIndex>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
|
|
||||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||||
<maxFileSize>50MB</maxFileSize>
|
<maxFileSize>100MB</maxFileSize>
|
||||||
</triggeringPolicy>
|
</triggeringPolicy>
|
||||||
|
|
||||||
<encoder>
|
<encoder>
|
||||||
|
|
Loading…
Reference in New Issue