* 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.
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
-import org.slf4j.Marker;
-import org.slf4j.MarkerFactory;
public class SOMetricLogClientFilter extends MetricLogClientFilter {
protected static Logger logger = LoggerFactory.getLogger(SOMetricLogClientFilter.class);
- private static final Marker INVOKE_RETURN = MarkerFactory.getMarker("INVOKE-RETURN");
@Override
public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) {
setResponseStatusCode(responseContext.getStatus());
setResponseDescription(responseContext.getStatus());
MDC.put(ONAPLogConstants.MDCs.RESPONSE_CODE, String.valueOf(responseContext.getStatus()));
- logger.info(INVOKE_RETURN, "InvokeReturn");
clearClientMDCs();
setOpenStackResponseCode();
} catch (Exception e) {
* 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.
public class SOSpringClientFilter extends SpringClientFilter implements ClientHttpRequestInterceptor {
private final Logger logger = LoggerFactory.getLogger(this.getClass());
- private static final Marker INVOKE_RETURN = MarkerFactory.getMarker("INVOKE-RETURN");
@Override
protected void post(HttpRequest request, ClientHttpResponse response) {
}
- logger.info(INVOKE_RETURN, "InvokeReturn");
clearClientMDCs();
setOpenStackResponseCode();
}