summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java b/common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java
index f611ad6eba..bbcd815e75 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/http/client/api/RetryHandlers.java
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -27,15 +27,14 @@ import java.io.IOException;
public class RetryHandlers {
- private static final Logger LOGGER = Logger.getLogger(RetryHandlers.class.getName());
+ private static final Logger logger = Logger.getLogger(RetryHandlers.class.getName());
- private RetryHandlers() {
- }
+ private RetryHandlers(){}
public static ComparableHttpRequestRetryHandler getDefault(int numOfRetries) {
return (IOException exception, int executionCount, HttpContext context) -> {
- LOGGER.debug("failed sending request with exception", exception);
- LOGGER.debug("try request number: {}", executionCount);
+ logger.debug("failed sending request with exception", exception);
+ logger.debug("try request number: {}", executionCount);
return executionCount <= numOfRetries;
};
}