From 9d68377a6d2786568a677f9365c59a7c5a40d452 Mon Sep 17 00:00:00 2001 From: Muni Mohan Kunchi Date: Sun, 13 Sep 2020 17:46:23 -0400 Subject: changed pom version to 3.4 and changes to audit and error log. Issue-ID: PORTAL-1008 Signed-off-by: Muni Mohan Kunchi Change-Id: Idb8b4cafe78c7dae42f6f9921a6a4a315f90641c --- .../src/main/java/org/onap/portalsdk/core/conf/AppConfig.java | 3 ++- .../org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ecomp-sdk/epsdk-core/src') diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/AppConfig.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/AppConfig.java index acd39d77..b1a0b0b8 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/AppConfig.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/AppConfig.java @@ -112,7 +112,8 @@ public class AppConfig extends WebMvcConfigurerAdapter implements Configurable, * each log file type that logging has been started. */ private void initGlobalLocalContext() { - logger.init(); + String appName = SystemProperties.getProperty(SystemProperties.APPLICATION_NAME); + logger.init(appName); } /** diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java index b190c477..322e3c6b 100644 --- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java +++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java @@ -241,7 +241,7 @@ public class EELFLoggerDelegateTest { @Test public void initTest(){ EELFLoggerDelegate eelFLoggerDelegate = new EELFLoggerDelegate(getClass().getName()); - eelFLoggerDelegate.init(); + eelFLoggerDelegate.init(SystemProperties.getProperty(SystemProperties.APPLICATION_NAME)); Assert.assertTrue(true); } -- cgit 1.2.3-korg