fix logger name

pull/51/head
reger 9 years ago
parent 1d940e5a94
commit 7be1c7a05a

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

@ -32,6 +32,7 @@ import java.util.concurrent.ConcurrentHashMap;
import net.yacy.cora.sorting.ClusteredScoreMap; import net.yacy.cora.sorting.ClusteredScoreMap;
import net.yacy.cora.sorting.ScoreMap; import net.yacy.cora.sorting.ScoreMap;
import net.yacy.cora.util.ConcurrentLog;
import net.yacy.kelondro.util.ReverseMapIterator; import net.yacy.kelondro.util.ReverseMapIterator;
public final class ResultURLs { public final class ResultURLs {
@ -102,7 +103,7 @@ public final class ResultURLs {
resultStack.put(urlhash, new InitExecEntry(initiatorHash, executorHash)); resultStack.put(urlhash, new InitExecEntry(initiatorHash, executorHash));
} }
} catch (final Exception ex) { } 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; return;
} }
try { try {
@ -111,7 +112,7 @@ public final class ResultURLs {
domains.inc(hostname); domains.inc(hostname);
} }
} catch (final Exception ex) { } 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; return;
} }
} }

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

Loading…
Cancel
Save