Update the license for 2017-2018 license
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / db / schema / AuditOXM.java
index e64f3ea..ff7eee2 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * org.onap.aai
  * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
 package org.onap.aai.db.schema;
 
@@ -47,6 +45,7 @@ import org.onap.aai.introspection.LoaderFactory;
 import org.onap.aai.introspection.ModelType;
 import org.onap.aai.introspection.Version;
 import org.onap.aai.introspection.exceptions.AAIUnknownObjectException;
+import org.onap.aai.logging.LogFormatTools;
 import org.onap.aai.schema.enums.ObjectMetadata;
 import org.onap.aai.util.AAIConstants;
 import com.att.eelf.configuration.EELFLogger;
@@ -77,7 +76,7 @@ public class AuditOXM extends Auditor {
                                allObjects.add(temp);
                                this.createDBProperties(temp);
                        } catch (AAIUnknownObjectException e) {
-                               LOGGER.warn("Skipping audit for object " + key + " (Unknown Object)", e);
+                               LOGGER.warn("Skipping audit for object " + key + " (Unknown Object) " + LogFormatTools.getStackTop(e));
                        }
                }
                for (Introspector temp : allObjects) {
@@ -105,15 +104,8 @@ public class AuditOXM extends Auditor {
                        for (int i = 0; i < list.getLength(); i++) {
                                result.add(list.item(i).getAttributes().getNamedItem("name").getNodeValue());
                        }
-               } catch (ParserConfigurationException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
-               } catch (SAXException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
-               } catch (IOException e) {
-                       // TODO Auto-generated catch block
-                       e.printStackTrace();
+               } catch (ParserConfigurationException | SAXException | IOException e) {
+                       LOGGER.error(e.getMessage());
                }
 
                result.remove("EdgePropNames");