Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix in log initialization according to hint from Dominic
orbiterd27a0a67ff6c
diff --git a/source/net/yacy/kelondro/logging/Log.java b/source/net/yacy/kelondro/logging/Log.javaindex fb8f9c425..1584bff5d 100644--- a/source/net/yacy/kelondro/logging/Log.java+++ b/source/net/yacy/kelondro/logging/Log.java@@ -363,9 +363,9 @@ public final class Log {// creating the logging directoryString logPattern = logManager.getProperty("java.util.logging.FileHandler.pattern");- int stripPos = logPattern.lastIndexOf('/');+ int stripPos = logPattern.lastIndexOf(File.separatorChar);if (!new File(logPattern).isAbsolute()) logPattern = new File(dataPath, logPattern).getAbsolutePath();- if (stripPos < 0) stripPos = logPattern.lastIndexOf(File.pathSeparatorChar);+ if (stripPos < 0) stripPos = logPattern.lastIndexOf(File.separatorChar);File log = new File(logPattern.substring(0, stripPos));if (!log.isAbsolute()) log = new File(dataPath, log.getPath());if (!log.canRead()) log.mkdir();