summaryrefslogtreecommitdiffstats
path: root/cps-service
diff options
context:
space:
mode:
authorniamhcore <niamh.core@est.tech>2020-12-16 15:17:33 +0000
committerniamhcore <niamh.core@est.tech>2020-12-17 12:37:03 +0000
commitb9f857d3bf6d7fa8f9d0d5fa1796113d43e6e50d (patch)
tree316214c380f1e5c1ac53cb3f6ea7040e7bd6ea19 /cps-service
parent84ac94d2f3f9ebd6a3a7befa244beef851eac126 (diff)
Adding logging example
Logging example as part of CPS-10 Issue-ID: CPS-10 Signed-off-by: niamhcore <niamh.core@est.tech> Change-Id: I6428b01d112f27f9e4c9c72ac02236fcc49a6a1c
Diffstat (limited to 'cps-service')
-rw-r--r--cps-service/src/main/java/org/onap/cps/utils/YangUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java b/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java
index b96480a670..8743b7df1b 100644
--- a/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java
+++ b/cps-service/src/main/java/org/onap/cps/utils/YangUtils.java
@@ -25,8 +25,8 @@ import java.io.StringReader;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
-import java.util.logging.Logger;
import java.util.stream.Collectors;
+import lombok.extern.slf4j.Slf4j;
import org.onap.cps.api.impl.Fragment;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
@@ -46,8 +46,8 @@ import org.opendaylight.yangtools.yang.data.impl.schema.NormalizedNodeResult;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+@Slf4j
public class YangUtils {
- private static final Logger LOGGER = Logger.getLogger(YangUtils.class.getName());
private YangUtils() {
throw new IllegalStateException("Utility class");
@@ -103,7 +103,7 @@ public class YangUtils {
} else if (normalizedNode instanceof LeafSetNode) {
inspectLeafList(currentFragment, (LeafSetNode) normalizedNode);
} else {
- LOGGER.warning("Cannot normalize " + normalizedNode.getClass());
+ log.warn("Cannot normalize " + normalizedNode.getClass());
}
}