diff options
author | Muni Mohan Kunchi <munmohan@att.com> | 2020-09-13 17:46:23 -0400 |
---|---|---|
committer | Muni Mohan Kunchi <munmohan@att.com> | 2020-09-15 17:16:07 -0400 |
commit | 9d68377a6d2786568a677f9365c59a7c5a40d452 (patch) | |
tree | 5544d545080c877f23e5a9a030db923fa0ee9d36 /ecomp-sdk/epsdk-core | |
parent | 85f4b0397224b43cae34aa1d04352ba1702b3493 (diff) |
changed pom version to 3.4 and changes to audit and error log.
Issue-ID: PORTAL-1008
Signed-off-by: Muni Mohan Kunchi <munmohan@att.com>
Change-Id: Idb8b4cafe78c7dae42f6f9921a6a4a315f90641c
Diffstat (limited to 'ecomp-sdk/epsdk-core')
3 files changed, 4 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-core/pom.xml b/ecomp-sdk/epsdk-core/pom.xml index 753f0d8e..f1a40edb 100644 --- a/ecomp-sdk/epsdk-core/pom.xml +++ b/ecomp-sdk/epsdk-core/pom.xml @@ -6,7 +6,7 @@ <parent> <groupId>org.onap.portal.sdk</groupId> <artifactId>epsdk-project</artifactId> - <version>3.3.0-SNAPSHOT</version> + <version>3.4.0-SNAPSHOT</version> </parent> <!-- GroupId is inherited from parent --> 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); } |