summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-core
diff options
context:
space:
mode:
authorSunder Tattavarada <statta@research.att.com>2020-09-16 14:45:46 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-16 14:45:46 +0000
commit882777cfc554e1eca05d7ba583bc311fd753708b (patch)
treedb808b3c7c6eee4a9f28953d71a0b36b92e4fdd6 /ecomp-sdk/epsdk-core
parent250db125884ddab4000ea041e9800803beb22e29 (diff)
parent9d68377a6d2786568a677f9365c59a7c5a40d452 (diff)
Merge "changed pom version to 3.4 and changes to audit and error log."
Diffstat (limited to 'ecomp-sdk/epsdk-core')
-rw-r--r--ecomp-sdk/epsdk-core/pom.xml2
-rw-r--r--ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/conf/AppConfig.java3
-rw-r--r--ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java2
3 files changed, 4 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-core/pom.xml b/ecomp-sdk/epsdk-core/pom.xml
index d44de8dc..e2842943 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);
}