Update the license for 2017-2018 license
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / audit / ListEndpoints.java
index 5ee973a..310655f 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.audit;
 
@@ -40,6 +38,8 @@ 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 com.att.eelf.configuration.EELFLogger;
 import com.att.eelf.configuration.EELFManager;
 import com.google.common.base.CaseFormat;
@@ -121,7 +121,7 @@ public class ListEndpoints {
                                        try {
                                                endpoints.add(currentUri + obj.getLoader().introspectorFromName(key).getGenericURI());
                                        } catch (AAIUnknownObjectException e) {
-                                               LOGGER.warn("Skipping endpoint for " + key + " (Unknown object)", e);
+                                               LOGGER.warn("Skipping endpoint for " + key + " (Unknown object) " + LogFormatTools.getStackTop(e));
                                        }
                                }
                        }
@@ -147,7 +147,7 @@ public class ListEndpoints {
                                                                newVisited
                                                                );
                                        } catch (AAIUnknownObjectException e) {
-                                               LOGGER.warn("Skipping nested endpoint for " + propName + " (Unknown Object)", e);
+                                               LOGGER.warn("Skipping nested endpoint for " + propName + " (Unknown Object) " + LogFormatTools.getStackTop(e));
                                        }
                                }
                        } else if (obj.isComplexType(propName)) {
@@ -161,7 +161,7 @@ public class ListEndpoints {
                                                        visited
                                                        );
                                } catch (AAIUnknownObjectException e) {
-                                       LOGGER.warn("Skipping nested enpoint for " + propName + " (Unknown Object)", e);
+                                       LOGGER.warn("Skipping nested enpoint for " + propName + " (Unknown Object) "+ LogFormatTools.getStackTop(e));
                                }
                        }
                }