add DEBUG_MODE
This commit is contained in:
parent
76279a5d0d
commit
a577e8a4ef
@ -21,6 +21,7 @@ import java.util.*;
|
||||
public class Utility {
|
||||
/** Default size for the TCP input stream */
|
||||
public static final int TCP_BUFFER_SIZE = 4096;
|
||||
public static final boolean DEBUG_MODE = false;
|
||||
|
||||
/** Object to get some random values... */
|
||||
public static Random rnd = new Random(1);
|
||||
@ -419,4 +420,8 @@ public class Utility {
|
||||
System.out.println(logMsg);
|
||||
}
|
||||
}
|
||||
|
||||
public static void pDebug(String msg) {
|
||||
if(DEBUG_MODE) System.out.println(msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user