fix logger name

This commit is contained in:
reger 2016-04-17 03:20:14 +02:00
parent 1d940e5a94
commit 7be1c7a05a
3 changed files with 5 additions and 4 deletions

View File

@ -117,7 +117,7 @@ public class ConfigLanguage_p {
final String ext = Files.getFileExtension(langFile.getName());
if (ext.equalsIgnoreCase("xlf") || ext.equalsIgnoreCase("xliff")) {
TranslatorXliff tx = new TranslatorXliff();
Map lng = TranslatorXliff.loadTranslationsListsFromXliff(langFile);
Map<String,Map<String,String>> lng = TranslatorXliff.loadTranslationsListsFromXliff(langFile);
langFile = new File(langPath, Files.getNameWithoutExtension(langFile.getName())+".lng");
tx.saveAsLngFile(null, langFile, lng);
}

View File

@ -32,6 +32,7 @@ import java.util.concurrent.ConcurrentHashMap;
import net.yacy.cora.sorting.ClusteredScoreMap;
import net.yacy.cora.sorting.ScoreMap;
import net.yacy.cora.util.ConcurrentLog;
import net.yacy.kelondro.util.ReverseMapIterator;
public final class ResultURLs {
@ -102,7 +103,7 @@ public final class ResultURLs {
resultStack.put(urlhash, new InitExecEntry(initiatorHash, executorHash));
}
} catch (final Exception ex) {
System.out.println("INTERNAL ERROR in newEntry/2: " + ex.toString());
ConcurrentLog.warn("CRAWLER", "INTERNAL ERROR in newEntry/2: " + ex.toString());
return;
}
try {
@ -111,7 +112,7 @@ public final class ResultURLs {
domains.inc(hostname);
}
} catch (final Exception ex) {
System.out.println("INTERNAL ERROR in newEntry/3: " + ex.toString());
ConcurrentLog.warn("CRAWLER", "INTERNAL ERROR in newEntry/3: " + ex.toString());
return;
}
}

View File

@ -129,7 +129,7 @@ public class TranslatorXliff extends Translator {
}
}
} catch (JAXBException je) {
ConcurrentLog.warn("TRANSKATOR",je.getMessage());
ConcurrentLog.warn("TRANSLATOR", je.getMessage());
} catch (FileNotFoundException ex) {
ConcurrentLog.warn("TRANSLATOR", "File not found: " + xliffFile.getAbsolutePath());
}