Sonar critical issue fix, either log or rethrow exception.
Issue-ID: PORTAL-364
Change-Id: Idd50876e7d3ad8eab277b1f68bfd765af3af8962
Signed-off-by: Amaresh Kumar <kamaresh@in.ibm.com>
client = HttpsBasicClient.getClient();
}
} catch (Exception e) {
client = HttpsBasicClient.getClient();
}
} catch (Exception e) {
- logger.debug(EELFLoggerDelegate.debugLogger, "Unable to initialize rest client");
+ logger.debug(EELFLoggerDelegate.debugLogger, "Unable to initialize rest client",e.getMessage());
}
logger.debug(EELFLoggerDelegate.debugLogger, "Client Initialized");
}
logger.debug(EELFLoggerDelegate.debugLogger, "Client Initialized");