1
0

add DEBUG_MODE

This commit is contained in:
Rémi Heredero 2023-05-17 20:53:14 +02:00
parent 76279a5d0d
commit a577e8a4ef

View File

@ -21,6 +21,7 @@ import java.util.*;
public class Utility { public class Utility {
/** Default size for the TCP input stream */ /** Default size for the TCP input stream */
public static final int TCP_BUFFER_SIZE = 4096; public static final int TCP_BUFFER_SIZE = 4096;
public static final boolean DEBUG_MODE = false;
/** Object to get some random values... */ /** Object to get some random values... */
public static Random rnd = new Random(1); public static Random rnd = new Random(1);
@ -419,4 +420,8 @@ public class Utility {
System.out.println(logMsg); System.out.println(logMsg);
} }
} }
public static void pDebug(String msg) {
if(DEBUG_MODE) System.out.println(msg);
}
} }