diff src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java @ 295:deb5fb087b6f ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 20:48:40 -0700
parents c41a399da303
children ab3a99f11a36
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java	Fri Jul 18 20:44:46 2014 -0700
+++ b/src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java	Fri Jul 18 20:48:40 2014 -0700
@@ -99,8 +99,7 @@
         this.c = c;
         this.authAgent = authAgent;
 
-        if (log.isEnabled())
-            log.log(20, "AuthAgentForwardThread started");
+        log.debug("AuthAgentForwardThread started");
     }
 
     @Override
@@ -190,7 +189,7 @@
             c.cm.closeChannel(c, "EOF on both streams reached.", true);
         }
         catch (IOException e) {
-            log.log(50, "IOException in agent forwarder: " + e.getMessage());
+            log.debug("IOException in agent forwarder: " + e.getMessage());
 
             try {
                 is.close();
@@ -306,7 +305,7 @@
                 comment = tr.readString();
 
                 if (!"nistp256".equals(curveName)) {
-                    log.log(2, "Invalid curve name for ecdsa-sha2-nistp256: " + curveName);
+                    log.debug("Invalid curve name for ecdsa-sha2-nistp256: " + curveName);
                     os.write(SSH_AGENT_FAILURE);
                     return;
                 }
@@ -324,7 +323,7 @@
                 privSpec = new ECPrivateKeySpec(exponent, nistp256);
             }
             else {
-                log.log(2, "Unknown key type: " + type);
+                log.debug("Unknown key type: " + type);
                 os.write(SSH_AGENT_FAILURE);
                 return;
             }