add Thread ID to WolfSSLDebug logs

pull/47/head
Chris Conlon 2020-05-22 14:13:04 -06:00
parent 5ca6fb8b2c
commit ee999153f8
2 changed files with 3 additions and 1 deletions

1
README
View File

@ -40,6 +40,7 @@ Release X.X.X has bug fixes and new features including:
- Add internal implementation of SSLParameters, WolfSSLParameters
- Add client-side SNI support
- Fix warnings when DH is disabled (--disable-dh)
- Add Java thread ID to JSSE debug log messages for easier multithreaded debug
The wolfSSL JNI Manual is available at:
http://www.wolfssl.com/documentation/wolfSSL-JNI-Manual.pdf. For build

View File

@ -75,7 +75,8 @@ public class WolfSSLDebug {
*/
public static void log(Class cl, String tag, String string) {
if (DEBUG) {
System.out.println("[wolfJSSE " + tag + " : " +
System.out.println("[wolfJSSE " + tag + ": TID " +
Thread.currentThread().getId() + ": " +
cl.getSimpleName() + "] " + string);
}
}