From: Sudarshan Kumar Date: Mon, 11 Feb 2019 12:19:55 +0000 (+0530) Subject: Removed PrintStackTrace SshJcraftWrapper.java X-Git-Tag: 1.5.0~252 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=422344933185539064ba5fd0b267e88bc442c23d;p=appc.git Removed PrintStackTrace SshJcraftWrapper.java Removed PrintStackTrace SshJcraftWrapper.java Issue-ID: APPC-1399 Change-Id: Ice16de4fd8d997643d4dea73a4ebacc75f2b2d49 Signed-off-by: Sudarshan Kumar --- diff --git a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/SshJcraftWrapper.java b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/SshJcraftWrapper.java index d4deb1fa5..62773a06c 100644 --- a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/SshJcraftWrapper.java +++ b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/SshJcraftWrapper.java @@ -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); } }