small fix for new Logger

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6079 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent ce1adf9955
commit 17dc6d4be5

@ -306,6 +306,9 @@ public final class Log {
private static logRunner logRunnerThread = null;
protected static class logRunner extends Thread {
public logRunner() {
super("Log Runner");
}
public void run() {
logEntry entry;

@ -69,7 +69,7 @@ public class LogalizerHandler extends Handler {
System.out.println("Can't find any parsers in "+parserDir.toString());
}
for (final String filename: parserDirFiles) {
if (filename.endsWith("LogalizerHandler.class")) continue;
if (filename.endsWith("Log.class") || filename.endsWith("LogalizerHandler.class")) continue;
final Pattern patternGetClassName = Pattern.compile(".*\\"+ File.separator +"([^\\"+ File.separator +"]+)\\.class");
final Matcher matcherClassName = patternGetClassName.matcher(filename);
matcherClassName.find();

@ -460,6 +460,7 @@ public final class yacy {
startupFinishedSync.V();
}
Log.logConfig("SHUTDOWN", "goodbye. (this is the last line)");
Log.shutdown();
try {
System.exit(0);
} catch (Exception e) {} // was once stopped by de.anomic.net.ftpc$sm.checkExit(ftpc.java:1790)

Loading…
Cancel
Save