permanent yacy.logging

see http://www.yacy-forum.de/viewtopic.php?p=10020


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@773 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 1dc94e7753
commit 5bf7d74114

@ -183,8 +183,9 @@ public final class yacy {
}
// setting up logging
try {
serverLog.configureLogging(new File(homePath, "yacy.logging"));
if (!((new File(homePath, "DATA/LOG/yacy.logging")).exists())) try {
serverFileUtils.copy(new File(homePath, "yacy.logging"), new File(homePath, "DATA/LOG/yacy.logging"));
serverLog.configureLogging(new File(homePath, "DATA/LOG/yacy.logging"));
} catch (IOException e) {
System.out.println("could not find logging properties in homePath=" + homePath);
e.printStackTrace();
@ -252,9 +253,10 @@ public final class yacy {
if (timeout < 60000) timeout = 60000;
// create some directories
final File htRootPath = new File(sb.getRootPath(), sb.getConfig("htRootPath", "htroot"));
final File htDocsPath = new File(sb.getRootPath(), sb.getConfig("htDocsPath", "DATA/HTDOCS"));
File htTemplatePath = new File(sb.getRootPath(), sb.getConfig("htTemplatePath","htdocs"));
final File RootPath = new File(sb.getRootPath());
final File htRootPath = new File(RootPath, sb.getConfig("htRootPath", "htroot"));
final File htDocsPath = new File(RootPath, sb.getConfig("htDocsPath", "DATA/HTDOCS"));
File htTemplatePath = new File(RootPath, sb.getConfig("htTemplatePath","htdocs"));
// create default notifier picture
if (!((new File(htRootPath, "env/grafics/notifier.gif")).exists())) try {
@ -375,8 +377,8 @@ public final class yacy {
}
//Copy the shipped locales into DATA
final File localesPath = new File(sb.getRootPath(), sb.getConfig("localesPath", "DATA/LOCALE"));
final File defaultLocalesPath = new File(sb.getRootPath(), "locales");
final File localesPath = new File(RootPath, sb.getConfig("localesPath", "DATA/LOCALE"));
final File defaultLocalesPath = new File(RootPath, "locales");
try{
final File[] defaultLocales = defaultLocalesPath.listFiles();
@ -857,4 +859,4 @@ class shutdownHookThread extends Thread {
serverLog.logSevere("SHUTDOWN","Unexpected error. " + e.getClass().getName(),e);
}
}
}
}

Loading…
Cancel
Save