aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Muszkieta <lukasz.muszkieta@nokia.com>2019-09-04 12:16:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-04 12:16:53 +0000
commit3ba5abf2d76c3d76339f67d933c2d095686c99f1 (patch)
tree4b4da894505239afc707805ce6a76ed867ab2924
parent10e989e4a8b5ce9d28bd59c1915a7064782691f3 (diff)
parent271e86ceb4140a04190ba0161cce6c85c7dfeb33 (diff)
Merge "General sonar fix add logger"
-rw-r--r--common/src/main/java/org/onap/so/client/graphinventory/entities/DSLQueryBuilder.java4
1 files changed, 4 insertions, 0 deletions
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<S, E> implements QueryStep {
private List<QueryStep> steps = new ArrayList<>();
private String suffix = "";
+ private static final Logger logger = LoggerFactory.getLogger(DSLQueryBuilder.class);
public DSLQueryBuilder() {
@@ -64,6 +67,7 @@ public class DSLQueryBuilder<S, E> implements QueryStep {
((DSLNode) ((DSLQueryBuilder) o).steps.get(0)).output();
}
} catch (IllegalArgumentException | IllegalAccessException e) {
+ logger.error("Exception occured", e);
}
f.setAccessible(false);
break;