forked from lsmyrnaios/UrlsController
Fix the "retries-num" appearing in log-messages.
This commit is contained in:
parent
02bae38885
commit
b4f91f188e
|
@ -27,7 +27,7 @@ public class StatsServiceImpl implements StatsService {
|
||||||
public ResponseEntity<?> getNumberOfPayloads(String getNumberQuery, String message, int retryCount)
|
public ResponseEntity<?> getNumberOfPayloads(String getNumberQuery, String message, int retryCount)
|
||||||
{
|
{
|
||||||
if ( retryCount > 10 ) {
|
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);
|
logger.error(errorMsg);
|
||||||
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
|
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ public class StatsServiceImpl implements StatsService {
|
||||||
public ResponseEntity<?> getNumberOfRecordsInspectedByServiceThroughCrawling(int retryCount)
|
public ResponseEntity<?> getNumberOfRecordsInspectedByServiceThroughCrawling(int retryCount)
|
||||||
{
|
{
|
||||||
if ( retryCount > 10 ) {
|
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);
|
logger.error(errorMsg);
|
||||||
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
|
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(errorMsg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue