From 553c859703afbcb120b5227456379c11697c3447 Mon Sep 17 00:00:00 2001 From: okybaca Date: Mon, 27 Nov 2023 07:51:42 +0100 Subject: [PATCH] logging: moved some log-cluttering DHT messages to level 'fine' --- source/net/yacy/peers/DHTSelection.java | 2 +- source/net/yacy/peers/Dispatcher.java | 2 +- source/net/yacy/search/Switchboard.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/net/yacy/peers/DHTSelection.java b/source/net/yacy/peers/DHTSelection.java index 63f408181..6030226ae 100644 --- a/source/net/yacy/peers/DHTSelection.java +++ b/source/net/yacy/peers/DHTSelection.java @@ -215,7 +215,7 @@ public class DHTSelection { /* Even if the peer is not a robinson and has the required minimum age, it may have an empty or disabled RWI */ continue; } - if (RemoteSearch.log.isInfo()) RemoteSearch.log.info("selectPeers/DHTorder: " + seed.hash + ":" + seed.getName() + "/ score " + c); + if (RemoteSearch.log.isFine()) RemoteSearch.log.fine("selectPeers/DHTorder: " + seed.hash + ":" + seed.getName() + "/ score " + c); seeds.add(seed); c--; } diff --git a/source/net/yacy/peers/Dispatcher.java b/source/net/yacy/peers/Dispatcher.java index d3af84dbf..0c9ee0507 100644 --- a/source/net/yacy/peers/Dispatcher.java +++ b/source/net/yacy/peers/Dispatcher.java @@ -281,7 +281,7 @@ public class Dispatcher implements WorkflowTask { for (Seed target: targets[vertical]) { Transmission.Chunk entry = this.transmissionBuffer.get(target.hash); // if this is not null, the entry is extended here if (entry == null) entry = transmission.newChunk(target); else { - log.info("extending chunk for peer " + entry.dhtTarget().hash + " containing " + entry.containersSize() + " references with " + verticalContainer.size() + " more entries"); + log.fine("extending chunk for peer " + entry.dhtTarget().hash + " containing " + entry.containersSize() + " references with " + verticalContainer.size() + " more entries"); } try { entry.add(verticalContainer); diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index bfadb1892..0d5e03c00 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -4110,7 +4110,7 @@ public final class Switchboard extends serverSwitch { final long kbytesUp = ConnectionInfo.getActiveUpbytes() / 1024; // accumulate RWIs to transmission buffer if ( this.dhtDispatcher.bufferSize() > this.peers.scheme.verticalPartitions() ) { - this.log.info("dhtTransferJob: no selection, too many entries in transmission buffer: " + this.log.fine("dhtTransferJob: no selection, too many entries in transmission buffer: " + this.dhtDispatcher.bufferSize()); } else if ( MemoryControl.available() < 1024 * 1024 * 25 ) { this.log.info("dhtTransferJob: no selection, too less memory available : " @@ -4148,7 +4148,7 @@ public final class Switchboard extends serverSwitch { this.dhtMaxReferenceCount, 5000); hasDoneSomething = hasDoneSomething | enqueued; - this.log.info("dhtTransferJob: result from enqueueing: " + ((enqueued) ? "true" : "false")); + this.log.fine("dhtTransferJob: result from enqueueing: " + ((enqueued) ? "true" : "false")); } // check if we can deliver entries to other peers @@ -4166,7 +4166,7 @@ public final class Switchboard extends serverSwitch { } else { final boolean dequeued = this.dhtDispatcher.dequeueContainer(); hasDoneSomething = hasDoneSomething | dequeued; - this.log.info("dhtTransferJob: result from dequeueing: " + ((dequeued) ? "true" : "false")); + this.log.fine("dhtTransferJob: result from dequeueing: " + ((dequeued) ? "true" : "false")); } return hasDoneSomething; }