diff options
author | Ittay Stern <ittay.stern@att.com> | 2020-03-12 11:00:18 +0200 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2020-03-12 11:06:27 +0200 |
commit | 12f3ef11130d082940c618dcb8bd7b6704c4a2be (patch) | |
tree | 5c6d3018cf07558eff44fe24c8b9a22d14589811 | |
parent | df52eb273308e139b0b6d47a197cb9ebcc27dee0 (diff) |
logger.error() logs to correct level
Issue-ID: PORTAL-835
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Change-Id: Id421457ce91608bdd73ab4eab9b5f82fe19b2cd2
-rw-r--r-- | ecomp-sdk/epsdk-logger/src/main/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegate.java | 4 |
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); } |