From 0a55ff2648abf5a781945ff2ed395510c7683428 Mon Sep 17 00:00:00 2001 From: Adam Wudzinski Date: Wed, 27 Jun 2018 13:20:43 +0200 Subject: Sonar fix in ModelVersionTransformer Added logging Change-Id: Ib74f0429deaab8608f88341ed709ca6bd6490003 Issue-ID: AAI-1244 Signed-off-by: awudzins --- .../src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java index f889591..15596d0 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java @@ -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) { -- cgit 1.2.3-korg