Fix the "retries-num" appearing in log-messages.

This commit is contained in:
Lampros Smyrnaios 2023-09-14 12:08:33 +03:00
parent 02bae38885
commit b4f91f188e
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public class StatsServiceImpl implements StatsService {
public ResponseEntity<?> getNumberOfPayloads(String getNumberQuery, String message, int retryCount)
{
if ( retryCount > 10 ) {
String errorMsg = "Could not find the requested payload-type table in an non-merging state, after " + retryCount + " retries!";
String errorMsg = "Could not find the requested payload-type table in an non-merging state, after " + (retryCount -1) + " retries!";
logger.error(errorMsg);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
}
@ -59,7 +59,7 @@ public class StatsServiceImpl implements StatsService {
public ResponseEntity<?> getNumberOfRecordsInspectedByServiceThroughCrawling(int retryCount)
{
if ( retryCount > 10 ) {
String errorMsg = "Could not find the requested attempt table in an non-merging state, after " + retryCount + " retries!";
String errorMsg = "Could not find the requested attempt table in an non-merging state, after " + (retryCount -1) + " retries!";
logger.error(errorMsg);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
}