summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java b/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java
index 5632534a..e59a0cc0 100644
--- a/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java
+++ b/ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java
@@ -302,7 +302,7 @@ public class EELFLoggerDelegate extends SLF4jWrapper implements EELFLogger {
*/
public void error(EELFLogger logger, String msg, Object... arguments) {
MDC.put(LoggerProperties.MDC_CLASS_NAME, className);
- logger.warn(msg, arguments);
+ logger.error(msg, arguments);
MDC.remove(LoggerProperties.MDC_CLASS_NAME);
}
@@ -315,7 +315,7 @@ public class EELFLoggerDelegate extends SLF4jWrapper implements EELFLogger {
*/
public void error(EELFLogger logger, String msg, Throwable th) {
MDC.put(LoggerProperties.MDC_CLASS_NAME, className);
- logger.warn(msg, th);
+ logger.error(msg, th);
MDC.remove(LoggerProperties.MDC_CLASS_NAME);
}