@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;
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");