From c638391d22999bd61243794a1981d7476bfdbd5f Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Tue, 29 Oct 2019 15:01:17 +0200 Subject: use onap logging 1.6.1 with needed workarounds Issue-ID: VID-253 Onap logging 1.6.1 has some mismatches regards invocationId. This commit fix these mismatches by fixing the MDC when needed. Change-Id: Ic8d35318ae511667dfa6f9c4297d562fd976a717 Signed-off-by: Eylon Malin --- .../main/java/org/onap/portalapp/conf/ExternalAppInitializer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epsdk-app-onap/src/main') diff --git a/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java index e4386c150..0a4e87ed5 100644 --- a/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java +++ b/epsdk-app-onap/src/main/java/org/onap/portalapp/conf/ExternalAppInitializer.java @@ -44,6 +44,7 @@ import javax.servlet.ServletContext; import javax.servlet.ServletException; import org.onap.logging.filter.base.AbstractAuditLogFilter; import org.onap.logging.filter.base.AbstractMetricLogFilter; +import org.onap.logging.ref.slf4j.ONAPLogConstants; import org.onap.portalsdk.core.conf.AppInitializer; import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate; import org.slf4j.LoggerFactory; @@ -70,8 +71,8 @@ public class ExternalAppInitializer extends AppInitializer { //mark in logs that vid is started. private void logVidIsStarted() { - LoggerFactory.getLogger(AbstractMetricLogFilter.class).info(VID_IS_STARTED); - LoggerFactory.getLogger(AbstractAuditLogFilter.class).info(VID_IS_STARTED); + LoggerFactory.getLogger(AbstractMetricLogFilter.class).info(ONAPLogConstants.Markers.INVOKE, VID_IS_STARTED); + LoggerFactory.getLogger(AbstractAuditLogFilter.class).info(ONAPLogConstants.Markers.ENTRY, VID_IS_STARTED); } private void setPartnerName() { -- cgit 1.2.3-korg