Sonar Fix: Removed printStacktrace 45/78545/2
authorSudarshan Kumar <sudars19@in.ibm.com>
Fri, 15 Feb 2019 10:18:06 +0000 (15:48 +0530)
committerTakamune Cho <takamune.cho@att.com>
Wed, 20 Feb 2019 14:27:14 +0000 (14:27 +0000)
Sonar Fix: Removed printStacktrace

Issue-ID: APPC-1399
Change-Id: I0d33fac270a2082cc7b284c2df8e47fbf5b139a9
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
appc-config/appc-config-audit/provider/src/main/java/org/onap/sdnc/config/audit/node/CompareXmlData.java

index 549537c..e5e2b75 100644 (file)
@@ -5,7 +5,9 @@
  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Copyright (C) 2017 Amdocs
- * =============================================================================
+ * ================================================================================
+ * Modifications Copyright (c) 2019 IBM
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -97,12 +99,12 @@ public class CompareXmlData implements CompareDataInterface
         }
         catch(SAXException se)
         {
-            se.printStackTrace();
+            log.error("Exception caught", se);
             throw new Exception(se.getMessage());
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            log.error("Exception caught", e);
             throw new Exception(e.getMessage());
         }
     }