From f57d280afd73321756aad2f45cfd7b743049e31f Mon Sep 17 00:00:00 2001 From: allo Date: Thu, 26 May 2005 19:45:19 +0000 Subject: [PATCH] serverLog instead of System.out.println git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@179 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/translator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/data/translator.java b/source/de/anomic/data/translator.java index c118ae805..cadc87579 100644 --- a/source/de/anomic/data/translator.java +++ b/source/de/anomic/data/translator.java @@ -43,6 +43,8 @@ package de.anomic.data; +import de.anomic.server.serverLog; + import java.io.File; import java.io.FileFilter; import java.io.FileInputStream; @@ -67,7 +69,7 @@ public class translator { while(keys.hasMoreElements()){ key = (String)keys.nextElement(); result = result.replaceAll(key, translationList.getProperty(key)); - System.out.println("Replaced \""+key+"\" by \""+translationList.getProperty(key)+"\""); + //System.out.println("Replaced \""+key+"\" by \""+translationList.getProperty(key)+"\""); //DEBUG } return result; } @@ -124,9 +126,9 @@ public class translator { if(sourceFiles[i].getName().endsWith(extension)){ if(translateFile(sourceFiles[i], new File(destDir, sourceFiles[i].getName()), translationList)){ - System.out.println("Translated File: "+ sourceFiles[i].getName()); + serverLog.logInfo("Translator", "Translated File: "+ sourceFiles[i].getName()); }else{ - System.err.println("File Error while translating File "+sourceFiles[i].getName()); + serverLog.logError("Translator", "File Error while translating File "+sourceFiles[i].getName()); } }