Skip to content

Commit 7addc50

Browse files
committed
JSSE: replace printStackTrace with debug log in getId()
1 parent 2efe358 commit 7addc50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/java/com/wolfssl/provider/jsse/WolfSSLImplementSSLSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ public synchronized byte[] getId() {
321321
return null;
322322

323323
} catch (WolfSSLJNIException e) {
324-
/* print stack trace of native JNI error for debugging */
325-
e.printStackTrace();
324+
WolfSSLDebug.log(getClass(), WolfSSLDebug.ERROR,
325+
() -> "In getId(), JNI error: " + e.getMessage());
326326
return null;
327327
}
328328
}

0 commit comments

Comments
 (0)