add DEBUG_MODE
This commit is contained in:
		| @@ -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); | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user