X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-BE%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fportal%2Flogging%2Flogic%2FEPLogUtil.java;h=9c4799e0a8a92b055490f85a2e9081b027062c01;hb=ffd9af970318c1f5a0bad46d7aad5d4611414aae;hp=719e73c98d2fb9ebe9369af9c8e5cfba43d56144;hpb=e993c1a5ce19b73f6fdfd2fdf518d51c2381018b;p=portal.git diff --git a/portal-BE/src/main/java/org/onap/portal/logging/logic/EPLogUtil.java b/portal-BE/src/main/java/org/onap/portal/logging/logic/EPLogUtil.java index 719e73c9..9c4799e0 100644 --- a/portal-BE/src/main/java/org/onap/portal/logging/logic/EPLogUtil.java +++ b/portal-BE/src/main/java/org/onap/portal/logging/logic/EPLogUtil.java @@ -45,7 +45,7 @@ import static com.att.eelf.configuration.Configuration.MDC_ALERT_SEVERITY; import com.att.eelf.configuration.EELFLogger; import com.att.eelf.configuration.EELFManager; import java.text.MessageFormat; -import org.onap.portalapp.portal.logging.format.EPAppMessagesEnum; +import org.onap.portal.logging.format.EPAppMessagesEnum; import org.onap.portalsdk.core.logging.format.AlarmSeverityEnum; import org.onap.portalsdk.core.logging.format.ErrorSeverityEnum; import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate; @@ -55,7 +55,7 @@ import org.springframework.http.HttpStatus; public class EPLogUtil { // This class has no logger of its own; it uses loggers passed to it. - private static EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger(); + private static final EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger(); /** * Formats and writes a message to the error log with the class name and the @@ -173,7 +173,7 @@ public class EPLogUtil { */ private static String formatMessage(String message, Object... args) { StringBuilder sbFormattedMessage = new StringBuilder(); - if (args != null && args.length > 0 && message != null && message != "") { + if (args != null && args.length > 0 && message != null && !message.equals("")) { MessageFormat mf = new MessageFormat(message); sbFormattedMessage.append(mf.format(args)); } else {