dont dump the whole JVM if we cant open the log file

This commit is contained in:
zzz
2009-10-17 02:22:35 +00:00
parent 001c361338
commit 219095404a

View File

@ -153,13 +153,13 @@ class LogWriter implements Runnable {
if (!parent.exists()) {
boolean ok = parent.mkdirs();
if (!ok) {
System.err.println("Unable to create the parent directy: " + parent.getAbsolutePath());
System.exit(0);
System.err.println("Unable to create the parent directory: " + parent.getAbsolutePath());
//System.exit(0);
}
}
if (!parent.isDirectory()) {
System.err.println("wtf, we cannot put the logs in a subdirectory of a plain file! we want to stre the log as " + f.getAbsolutePath());
System.exit(0);
//System.exit(0);
}
}
try {