X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=nemo-tools%2Fsandbox%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnemo%2Ftool%2Fsandbox%2FCmdExecutor.java;h=c738f8fb9195e5a40708f707dcc523f224a72953;hb=531e306efab525f89160d5b44579a93cc0697137;hp=2f2383592d025832ee22346f0214b3da4064aee5;hpb=41608cf440761e08334d3a12fcf0cb72ef38e8dd;p=nemo.git diff --git a/nemo-tools/sandbox/src/main/java/org/opendaylight/nemo/tool/sandbox/CmdExecutor.java b/nemo-tools/sandbox/src/main/java/org/opendaylight/nemo/tool/sandbox/CmdExecutor.java index 2f23835..c738f8f 100644 --- a/nemo-tools/sandbox/src/main/java/org/opendaylight/nemo/tool/sandbox/CmdExecutor.java +++ b/nemo-tools/sandbox/src/main/java/org/opendaylight/nemo/tool/sandbox/CmdExecutor.java @@ -17,6 +17,8 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Created by hj on 12/9/15. @@ -38,8 +40,7 @@ public class CmdExecutor { return true; } } catch (IOException objException) { -// objException.printStackTrace(); - log.error(objException); + log.error("Exceptions:",objException); if (null != sshConnection) { sshConnection.close(); sshConnection = null; @@ -77,8 +78,7 @@ public class CmdExecutor { return result; } catch (IOException objException) { -// objException.printStackTrace(); - log.error(objException); + log.error("Exceptions:",objException); } finally { if (null != session) { session.close();