Domain model change
[portal.git] / portal-BE / src / main / java / org / onap / portal / controller / WidgetMSController.java
index b943482..92b4b51 100644 (file)
@@ -55,7 +55,7 @@ import org.springframework.web.bind.annotation.RestController;
 @RestController
 @RequestMapping("/portalApi/consul")
 public class WidgetMSController {
-       private EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(WidgetMSController.class);
+       private final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(WidgetMSController.class);
 
        private final WidgetMService widgetMService;
 
@@ -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");