Sonar Critical 33/60533/1
authorShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Tue, 14 Aug 2018 11:53:02 +0000 (17:23 +0530)
committerShubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
Tue, 14 Aug 2018 11:53:02 +0000 (17:23 +0530)
Either log or rethrow this exception.

Change-Id: I622086227ea912a5c19cfd5daa84463d9354876c
Issue-ID: PORTAL-360
Signed-off-by: Shubhada Ramkrishna Vaze <SV00449682@TechMahindra.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/service/UserRolesCommonServiceImpl.java

index e3ce07f..2eb7c94 100644 (file)
@@ -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);
                                                }
                                        }