From 78b33155a14fd35d9c0db7b0fa91fdfd7573bfbb Mon Sep 17 00:00:00 2001 From: Parshad Patel Date: Fri, 25 Oct 2019 14:04:25 +0900 Subject: Fix sonar issues Either log or rethrow this exception Change this "try" to a try-with-resources Move string literal on the left side of this string comparison Issue-ID: PORTAL-562 Change-Id: I8966c035bb8c36026172457231f426179bb3ed48 Signed-off-by: Parshad Patel --- .../src/main/java/org/onap/portal/controller/WidgetMSController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portal-BE/src') diff --git a/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java b/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java index b9434820..ab1b2806 100644 --- a/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java +++ b/portal-BE/src/main/java/org/onap/portal/controller/WidgetMSController.java @@ -74,7 +74,7 @@ public class WidgetMSController { widgetMService.getServiceLocation(service, null)); } catch (Exception e) { - logger.error(EELFLoggerDelegate.errorLogger, "Couldn't get the service location"); + logger.error(EELFLoggerDelegate.errorLogger, "Couldn't get the service location", e); return new PortalRestResponse<>(PortalRestStatusEnum.ERROR, "Error!", "Couldn't get the service location"); -- cgit 1.2.3-korg