Merge pull request #616 from okybaca/logging3

changed the log entry REJECTED to CRAWLER * REJECTED, loglevel fine
pull/619/head
Michael Christen 12 months ago committed by GitHub
commit 6d5e9ff53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,7 @@ import net.yacy.search.schema.CollectionSchema;
public class ErrorCache { public class ErrorCache {
private static final ConcurrentLog log = new ConcurrentLog("REJECTED"); private static final ConcurrentLog log = new ConcurrentLog("CRAWLER");
private static final int maxStackSize = 1000; private static final int maxStackSize = 1000;
// the class object // the class object
@ -103,7 +103,7 @@ public class ErrorCache {
assert failCategory.store || httpcode == -1 : "failCategory=" + failCategory.name(); assert failCategory.store || httpcode == -1 : "failCategory=" + failCategory.name();
if (anycause == null) anycause = "unknown"; if (anycause == null) anycause = "unknown";
final String reason = anycause + ((httpcode >= 0) ? " (http return code = " + httpcode + ")" : ""); final String reason = anycause + ((httpcode >= 0) ? " (http return code = " + httpcode + ")" : "");
if (!reason.startsWith("double")) log.info(url.toNormalform(true) + " - " + reason); if (!reason.startsWith("double")) log.fine("REJECTED " + url.toNormalform(true) + " - " + reason);
if (!this.cache.containsKey(ASCII.String(url.hash()))) { // no further action if in error-cache if (!this.cache.containsKey(ASCII.String(url.hash()))) { // no further action if in error-cache
CollectionConfiguration.FailDoc failDoc = new CollectionConfiguration.FailDoc( CollectionConfiguration.FailDoc failDoc = new CollectionConfiguration.FailDoc(

Loading…
Cancel
Save