Reduce log noise caused by AbstractAuditLogFilter 78/139578/2
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Wed, 27 Nov 2024 08:37:01 +0000 (09:37 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Wed, 27 Nov 2024 08:39:12 +0000 (08:39 +0000)
- reduce number of log lines that are written on each request

Issue-ID: AAI-4072
Change-Id: I7582a36fe32bc64c14a5f565c52895b11cee7364
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
aai-els-onap-logging/src/main/java/org/onap/logging/filter/base/AbstractAuditLogFilter.java

index 222b98c..b99c8d8 100644 (file)
@@ -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.
@@ -45,7 +45,6 @@ public abstract class AbstractAuditLogFilter<GenericRequest, GenericResponse> ex
             additionalPreHandling(request);
             setLogTimestamp();
             setElapsedTime();
-            logger.info(ONAPLogConstants.Markers.ENTRY, "Entering");
         } catch (Exception e) {
             logger.warn("Error in AbstractInboundFilter pre", e);
         }
@@ -59,7 +58,6 @@ public abstract class AbstractAuditLogFilter<GenericRequest, GenericResponse> ex
             setResponseDescription(responseCode);
             setLogTimestamp();
             setElapsedTime();
-            logger.info(ONAPLogConstants.Markers.EXIT, "Exiting.");
             additionalPostHandling(response);
         } catch (Exception e) {
             logger.warn("Error in AbstractInboundFilter post", e);