changeset 369:7a5943a514d5

debug kex error
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 11:39:58 -0700
parents b198ea5c5ffd
children f4d595402a2f
files src/ch/ethz/ssh2/Connection.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/Connection.java	Mon Aug 04 11:05:00 2014 -0700
+++ b/src/ch/ethz/ssh2/Connection.java	Mon Aug 04 11:39:58 2014 -0700
@@ -25,6 +25,7 @@
 import ch.ethz.ssh2.crypto.SecureRandomFix;
 import ch.ethz.ssh2.crypto.cipher.BlockCipherFactory;
 import ch.ethz.ssh2.crypto.digest.MAC;
+import ch.ethz.ssh2.log.Logger;
 import ch.ethz.ssh2.packets.PacketIgnore;
 import ch.ethz.ssh2.transport.ClientTransportManager;
 import ch.ethz.ssh2.transport.HTTPProxyClientTransportManager;
@@ -50,6 +51,8 @@
  */
 
 public class Connection {
+    protected static final Logger log = Logger.getLogger(Connection.class);
+
     /**
      * The identifier presented to the SSH-2 server. This is the same
      * as the "softwareversion" defined in RFC 4253.
@@ -670,11 +673,13 @@
      */
 
     public void close() {
+        log.debug("Connection.close()");
         Throwable t = new Throwable("Closed due to user request.");
         close(t, false);
     }
 
     public void close(Throwable t, boolean hard) {
+        log.debug("Connection.close(%s hard=%b)", t.getMessage(), hard);
         if (cm != null) {
             cm.closeAllChannels();
         }