public static String LOG_FILE = "transferableGraph.log";
final static boolean LOG = false;
- final static private boolean DEBUG = false;
+ final static boolean PRINTDEBUG = false;
+ final static boolean DEBUG = LOG | PRINTDEBUG;
final static boolean PROFILE = false;
private TransferableGraphConfiguration2 configuration;
}
static void log(String line) {
+ if (PRINTDEBUG) System.err.println(line);
if (LOG) {
try {
+ if(line.length() > 500) line = line.substring(0, 500);
log.writeUTF(line + "\n");
} catch (IOException e) {
e.printStackTrace();