Sonar fix in ModelVersionTransformer 75/55475/1
authorAdam Wudzinski <adam.wudzinski@nokia.com>
Wed, 27 Jun 2018 11:20:43 +0000 (13:20 +0200)
committerawudzins <adam.wudzinski@nokia.com>
Wed, 27 Jun 2018 11:20:43 +0000 (13:20 +0200)
Added logging

Change-Id: Ib74f0429deaab8608f88341ed709ca6bd6490003
Issue-ID: AAI-1244
Signed-off-by: awudzins <adam.wudzinski@nokia.com>
aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java

index f889591..15596d0 100644 (file)
@@ -219,7 +219,7 @@ public class ModelVersionTransformer extends RESTAPI {
                                        .status(Status.INTERNAL_SERVER_ERROR)
                                        .entity(ErrorLogHelper.getRESTAPIErrorResponse(headers.getAcceptableMediaTypes(), ex, templateVars))
                                        .build();
-                       e.printStackTrace();
+                       LOGGER.error("Internal server error", e);
                        success = false;
                } finally {
                        if (dbEngine != null) {