Skip to content

Commit

Permalink
Merge pull request #616 from okybaca/logging3
Browse files Browse the repository at this point in the history
changed the log entry REJECTED to CRAWLER * REJECTED, loglevel fine
  • Loading branch information
Orbiter authored Dec 3, 2023
2 parents d5d4e8f + 5dee8db commit 6d5e9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/net/yacy/search/index/ErrorCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

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;

// the class object
Expand Down Expand Up @@ -103,7 +103,7 @@ public void push(final DigestURL url, final int crawldepth, final CrawlProfile p
assert failCategory.store || httpcode == -1 : "failCategory=" + failCategory.name();
if (anycause == null) anycause = "unknown";
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
CollectionConfiguration.FailDoc failDoc = new CollectionConfiguration.FailDoc(
Expand Down

0 comments on commit 6d5e9ff

Please sign in to comment.