# HG changeset patch # User Carl Byington # Date 1407177598 25200 # Node ID 7a5943a514d54043092d6852fb169436e84b4a4b # Parent b198ea5c5ffda1ee836b2656cd1f5da180b7e024 debug kex error diff -r b198ea5c5ffd -r 7a5943a514d5 src/ch/ethz/ssh2/Connection.java --- 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(); }