summaryrefslogtreecommitdiffstats
path: root/aai-core
diff options
context:
space:
mode:
authorJames Forsyth <jf2512@att.com>2018-02-01 17:31:20 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-01 17:31:20 +0000
commitce6a7fd941d113704bb923d34826074c792f2eca (patch)
tree7941f77a3e447a3139b77d657f72e76bed771c91 /aai-core
parent9c495f25f048af390a7aee649faabc44d3148047 (diff)
parentd55113909b7bd5633b7810cb02891a6618ad6ece (diff)
Merge "Fix in PojoInjestor"
Diffstat (limited to 'aai-core')
-rw-r--r--aai-core/src/main/java/org/onap/aai/introspection/PojoInjestor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/introspection/PojoInjestor.java b/aai-core/src/main/java/org/onap/aai/introspection/PojoInjestor.java
index 5de9c748..4a805d46 100644
--- a/aai-core/src/main/java/org/onap/aai/introspection/PojoInjestor.java
+++ b/aai-core/src/main/java/org/onap/aai/introspection/PojoInjestor.java
@@ -21,6 +21,8 @@
*/
package org.onap.aai.introspection;
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
import org.eclipse.persistence.jaxb.JAXBContextFactory;
import org.onap.aai.db.props.AAIProperties;
@@ -30,6 +32,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class PojoInjestor {
+ private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(PojoInjestor.class);
private String POJO_CLASSPATH = "org.onap.aai.domain.yang";
private final Pattern classNamePattern = Pattern.compile("\\.(v\\d+)\\.");
@@ -45,8 +48,7 @@ public class PojoInjestor {
}
context = JAXBContextFactory.createContext(POJO_CLASSPATH, this.getClass().getClassLoader());
} catch (JAXBException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ LOGGER.error(e.getMessage(),e);
}
return context;