Removing the interceptor which logs in message the 2nd time
@@ -35,7 +35,6 @@ import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.io.CachedOutputStream;
import org.apache.cxf.io.CachedWriter;
import org.apache.cxf.message.Message;
-import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
import org.apache.cxf.phase.PhaseInterceptor;
@@ -44,19 +43,6 @@ import org.apache.cxf.phase.PhaseInterceptor;
*/
@NoJSR250Annotations
public class LoggingInInterceptor extends AbstractLoggingInterceptor {
- class LoggingInFaultInterceptor extends AbstractPhaseInterceptor<Message> {
- LoggingInFaultInterceptor() {
- super(Phase.RECEIVE);
- }
- @Override
- public void handleMessage(Message message) throws Fault {
- }
- @Override
- public void handleFault(Message message) throws Fault {
- LoggingInInterceptor.this.handleMessage(message);
- }
- }
-
public LoggingInInterceptor() {
this(new Slf4jVerboseEventSender());
@@ -74,7 +60,6 @@ public class LoggingInInterceptor extends AbstractLoggingInterceptor {
public Collection<PhaseInterceptor<? extends Message>> getAdditionalInterceptors() {
Collection<PhaseInterceptor<? extends Message>> ret = new ArrayList<>();
ret.add(new WireTapIn(limit, threshold));
- ret.add(new LoggingInFaultInterceptor());
return ret;
}
