From 17dc6d4be5b6fa2dd479998ca43ae664d82fb65d Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 15 Jun 2009 21:39:24 +0000 Subject: [PATCH] small fix for new Logger git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6079 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/logging/Log.java | 3 +++ source/de/anomic/yacy/logging/LogalizerHandler.java | 2 +- source/yacy.java | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/yacy/logging/Log.java b/source/de/anomic/yacy/logging/Log.java index da8b9ff75..ec3f1ec27 100644 --- a/source/de/anomic/yacy/logging/Log.java +++ b/source/de/anomic/yacy/logging/Log.java @@ -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; diff --git a/source/de/anomic/yacy/logging/LogalizerHandler.java b/source/de/anomic/yacy/logging/LogalizerHandler.java index 94af12d8e..ecca71e50 100644 --- a/source/de/anomic/yacy/logging/LogalizerHandler.java +++ b/source/de/anomic/yacy/logging/LogalizerHandler.java @@ -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(); diff --git a/source/yacy.java b/source/yacy.java index c454d3d2a..ac76e2726 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -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)