From 5dee8dbcbd7afeb5d066fa66cad8852e494ec993 Mon Sep 17 00:00:00 2001 From: okybaca Date: Sat, 2 Dec 2023 12:24:36 +0100 Subject: [PATCH] changed the log entry REJECTED to CRAWLER * REJECTED, loglevel fine --- source/net/yacy/search/index/ErrorCache.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/search/index/ErrorCache.java b/source/net/yacy/search/index/ErrorCache.java index 0dbfe0146..3289c6655 100644 --- a/source/net/yacy/search/index/ErrorCache.java +++ b/source/net/yacy/search/index/ErrorCache.java @@ -44,7 +44,7 @@ import net.yacy.search.schema.CollectionSchema; 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 @@ -103,7 +103,7 @@ public class ErrorCache { 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(