re base code
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / common / http / client / api / RetryHandlers.java
index 3e3b61f..da5368d 100644 (file)
@@ -1,21 +1,20 @@
 package org.openecomp.sdc.common.http.client.api;
 
 import org.apache.http.protocol.HttpContext;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import org.openecomp.sdc.common.log.wrappers.Logger;
 
 import java.io.IOException;
 
 public class RetryHandlers {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(RetryHandlers.class);
+    private static final Logger logger = Logger.getLogger(RetryHandlers.class.getName());
 
     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;
         };
     }