diff --git a/src/main/java/com/jcraft/jsch/Session.java b/src/main/java/com/jcraft/jsch/Session.java index b2464fad..4ac75dbe 100644 --- a/src/main/java/com/jcraft/jsch/Session.java +++ b/src/main/java/com/jcraft/jsch/Session.java @@ -602,7 +602,7 @@ private KeyExchange receive_kexinit(Buffer buf) throws Exception { if (enable_server_sig_algs) { doExtInfo = checkServerExtInfo(); - if (getLogger().isEnabled(Logger.INFO)) { + if (doExtInfo && getLogger().isEnabled(Logger.INFO)) { getLogger().log(Logger.INFO, "ext-info messaging supported by server"); } }