diff --git a/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/util/DpsHeadersIBMQueue.java b/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/util/DpsHeadersIBMQueue.java index 81cca45d62aefeb3d466a4e12e98dd103dd0ec1e..3fa378301ed518deb8c470dd853f7a3308f6ae6b 100644 --- a/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/util/DpsHeadersIBMQueue.java +++ b/provider/indexer-ibm/src/main/java/org/opengroup/osdu/indexer/ibm/util/DpsHeadersIBMQueue.java @@ -21,13 +21,12 @@ import java.util.stream.Collectors; import javax.inject.Inject; import javax.servlet.http.HttpServletRequest; -import org.opengroup.osdu.core.common.logging.JaxRsDpsLog; import org.opengroup.osdu.core.common.model.http.DpsHeaders; -import org.opengroup.osdu.core.common.model.http.Request; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Primary; import org.springframework.stereotype.Component; import org.springframework.web.context.annotation.RequestScope; + @Component @RequestScope @Primary @@ -39,10 +38,6 @@ public class DpsHeadersIBMQueue extends DpsHeaders { //TODO this should be moved to Azure client-lib public static final String INDEXER_QUEUE_KEY = "x-functions-key"; - @Inject - private JaxRsDpsLog logger; - @Inject - private Request logRequest; @Inject public DpsHeadersIBMQueue(HttpServletRequest request) { @@ -57,11 +52,6 @@ public class DpsHeadersIBMQueue extends DpsHeaders { // Add Correlation ID if missing this.addCorrelationIdIfMissing(); - //logRequest - logRequest.setIp(request.getRemoteAddr()); - logRequest.setRequestMethod(request.getMethod()); - logRequest.setRequestUrl(request.getRequestURL().toString()); - logger.info(logRequest.toString()); - logger.info(headers.toString()); + } }