From 0e60f33764e1d5a22e056b1761544e97710472bb Mon Sep 17 00:00:00 2001 From: BharathS24 Date: Fri, 27 Jul 2018 10:16:46 +0530 Subject: Sonar Critical issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Either log or rethrow this exception Sonar link : https://sonar.onap.org/issues?myIssues=true&open=AWSYoWCawGn37JfbvTzk&resolved=false   Location : src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java:L62 Change-Id: Ic2c2e1736acdcd60514e582f62a2de765d717508 Issue-ID: DCAEGEN2-634 Signed-off-by: BharathS24 --- .../org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java b/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java index 965953f..3292d60 100644 --- a/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java +++ b/src/main/java/org/onap/dcae/inventory/exceptions/mappers/DBIExceptionMapper.java @@ -60,7 +60,7 @@ public class DBIExceptionMapper implements ExceptionMapp InventoryDAOManager.getInstance().initialize(); clientMessage.append(" Connection has been successfully reset. Please try again."); } catch(Exception e) { - errorLogger.error(String.format("Failed to re-initialize database connection: %s", e.getMessage())); + errorLogger.error(String.format("Failed to re-initialize database connection: %s", e)); clientMessage.append(" Connection reset attempt has failed. Please try again soon."); } -- cgit 1.2.3-korg