Skip to content

Commit

Permalink
mwiede#622 Add stack trace to log message when an exception occurs du…
Browse files Browse the repository at this point in the history
…ring authentication.
  • Loading branch information
norrisjeremy committed Aug 29, 2024
1 parent 13c9493 commit e4c1465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* [0.2.20](https://github.com/mwiede/jsch/releases/tag/jsch-0.2.20)
* [#529](https://github.com/mwiede/jsch/pull/529) Update `Hostkey.getFingerprint()` method to output more moden format first introduced with OpenSSH 6.8.
* [#622](https://github.com/mwiede/jsch/pull/622) Add stack trace to log message when an exception occurs during authentication.
* [0.2.19](https://github.com/mwiede/jsch/releases/tag/jsch-0.2.19)
* Enforce DHGEX prime modulus bit length meets configured constraints.
* #604 Fix possible rekeying timeouts.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/jcraft/jsch/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@ public void connect(int connectTimeout) throws JSchException {
// SSH_MSG_DISCONNECT: Too many authentication failures
// System.err.println("ee: " + ee);
if (getLogger().isEnabled(Logger.WARN)) {
getLogger().log(Logger.WARN,
"an exception during authentication\n" + ee.toString());
getLogger().log(Logger.WARN, "an exception during authentication\n" + ee.toString(),
ee);
}
break loop;
}
Expand Down

0 comments on commit e4c1465

Please sign in to comment.