From f7c3299cd3993290c47864d10d461c52a2ebe0c2 Mon Sep 17 00:00:00 2001 From: Shubhada Ramkrishna Vaze Date: Tue, 14 Aug 2018 17:23:02 +0530 Subject: Sonar Critical Either log or rethrow this exception. Change-Id: I622086227ea912a5c19cfd5daa84463d9354876c Issue-ID: PORTAL-360 Signed-off-by: Shubhada Ramkrishna Vaze --- .../org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ecomp-portal-BE-common/src/main/java/org') diff --git a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java index e3ce07ff..2eb7c948 100644 --- a/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java +++ b/ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java @@ -887,7 +887,8 @@ public class UserRolesCommonServiceImpl { addRemoteUser(roleInAppForUserList, userId, app, mapper, searchService, applicationsRestClientService); } catch (Exception e) { - logger.debug(EELFLoggerDelegate.debugLogger, e.getMessage()); + String message=e.getMessage(); + logger.error(EELFLoggerDelegate.errorLogger, message, e); } } -- cgit 1.2.3-korg