diff options
author | 2018-06-27 13:20:43 +0200 | |
---|---|---|
committer | 2018-06-27 13:20:43 +0200 | |
commit | 0a55ff2648abf5a781945ff2ed395510c7683428 (patch) | |
tree | 1e284ae6436d6aeaec01bba231b4e9736ac88ee1 | |
parent | 00dac779f4b129af3395a6430eb2cf879b25d4d8 (diff) |
Sonar fix in ModelVersionTransformer
Added logging
Change-Id: Ib74f0429deaab8608f88341ed709ca6bd6490003
Issue-ID: AAI-1244
Signed-off-by: awudzins <adam.wudzinski@nokia.com>
-rw-r--r-- | aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |