Removed PrintStackTrace SshJcraftWrapper.java 04/78204/2
authorSudarshan Kumar <sudars19@in.ibm.com>
Mon, 11 Feb 2019 12:19:55 +0000 (17:49 +0530)
committerTakamune Cho <takamune.cho@att.com>
Mon, 11 Feb 2019 20:05:37 +0000 (20:05 +0000)
Removed PrintStackTrace SshJcraftWrapper.java

Issue-ID: APPC-1399
Change-Id: Ice16de4fd8d997643d4dea73a4ebacc75f2b2d49
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/SshJcraftWrapper.java

index d4deb1f..62773a0 100644 (file)
@@ -7,7 +7,9 @@
  * Copyright (C) 2017 Amdocs
  * ================================================================================
  * Modifications Copyright (C) 2018 Ericsson
- * =============================================================================
+ * ================================================================================
+ * 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
@@ -372,7 +374,6 @@ public class SshJcraftWrapper {
             } catch (IOException e) {
                 DebugLog.printAriDebug(fnName, "Caught an Exception, e=" + e);
                 dbLog.outputStackTrace(e);
-                e.printStackTrace();
             }
         } else {
             // When looking at the end of the charBuffer, don't include any linefeeds or spaces. We only want to make the smallest string possible.
@@ -402,7 +403,6 @@ public class SshJcraftWrapper {
                 } catch (IOException e) {
                     DebugLog.printAriDebug(fnName, "Caught an Exception, e=" + e);
                     dbLog.outputStackTrace(e);
-                    e.printStackTrace();
                 }
             }
         }
@@ -609,8 +609,8 @@ public class SshJcraftWrapper {
                 }
             }
         } catch (IOException e) {
-            System.err.println("writeToFile() exception: " + e);
-            e.printStackTrace();
+            DebugLog.printAriDebug(fnName, "writeToFile() exception:, e=" + e);
+            dbLog.outputStackTrace(e);
         }
     }
 
@@ -625,8 +625,7 @@ public class SshJcraftWrapper {
                 }
             }
         } catch (IOException e) {
-            System.err.println("writeToFile() exception: " + e);
-            e.printStackTrace();
+            dbLog.outputStackTrace(e);
         }
     }