JSSE: add timestamp to debug logs

pull/148/head
Chris Conlon 2023-09-08 15:54:47 -06:00
parent 2df44558b9
commit cff25f73d2
1 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,9 @@
package com.wolfssl.provider.jsse;
import java.util.Date;
import java.sql.Timestamp;
/**
* Central location for all debugging messages
*
@ -73,7 +76,8 @@ public class WolfSSLDebug {
*/
public static synchronized void log(Class cl, String tag, String string) {
if (DEBUG) {
System.out.println("[wolfJSSE " + tag + ": TID " +
System.out.println(new Timestamp(new java.util.Date().getTime()) +
" [wolfJSSE " + tag + ": TID " +
Thread.currentThread().getId() + ": " +
cl.getSimpleName() + "] " + string);
}