From 271e86ceb4140a04190ba0161cce6c85c7dfeb33 Mon Sep 17 00:00:00 2001 From: Arindam Mondal Date: Mon, 2 Sep 2019 16:00:18 +0900 Subject: General sonar fix add logger Issue-ID: SO-2226 Change-Id: I5a826a9ea75b3065987a274ab7962c4a5fc1d614 Signed-off-by: arind.mondal --- .../org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/src/main') diff --git a/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java b/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java index ad3bb6c311..540472a88d 100644 --- a/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java +++ b/common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java @@ -27,6 +27,8 @@ import java.util.List; import java.util.stream.Collectors; import org.onap.so.client.aai.entities.QueryStep; import org.onap.so.client.graphinventory.GraphInventoryObjectName; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import com.google.common.base.Joiner; @@ -34,6 +36,7 @@ public class DSLQueryBuilder implements QueryStep { private List steps = new ArrayList<>(); private String suffix = ""; + private static final Logger logger = LoggerFactory.getLogger(DSLQueryBuilder.class); public DSLQueryBuilder() { @@ -64,6 +67,7 @@ public class DSLQueryBuilder implements QueryStep { ((DSLNode) ((DSLQueryBuilder) o).steps.get(0)).output(); } } catch (IllegalArgumentException | IllegalAccessException e) { + logger.error("Exception occured", e); } f.setAccessible(false); break; -- cgit 1.2.3-korg