From b5ab5edebc0ddfb7bc32c016ffda7c9fddbade20 Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Thu, 21 Dec 2017 10:33:18 +0530 Subject: Sonar Critical :To either Log or rethrow exception To either Log or rethrow exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.resources%3Aresources#severities=MINOR%2CCRITICAL|assignees=aishkashyap Location: src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java Line No:355 Change-Id: Id2e9f0de6acb9844887e740902425be075209d6c Issue-ID: AAI-573 Signed-off-by: aishkashyap --- .../src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aai-resources') 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 52fe859..8572369 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 @@ -352,7 +352,7 @@ public class ModelVersionTransformer extends RESTAPI { } catch (NoSuchElementException e) { throw new NoSuchElementException(); } catch (Exception e1) { - e1.printStackTrace(); + LOGGER.error("Exception while getting current models from graph"+e1); } return modelVerModelMap; -- cgit 1.2.3-korg