From 8c305d8390f88fe35aaa85b26908c27a9d026a6d Mon Sep 17 00:00:00 2001 From: CalDescent Date: Tue, 1 Jun 2021 08:39:38 +0100 Subject: [PATCH] Reduced log levels of recent synchronizer / controller log additions from INFO to DEBUG. These are no longer necessary now that we have achieved good stability in the network. --- src/main/java/org/qortal/controller/Controller.java | 4 ++-- src/main/java/org/qortal/controller/Synchronizer.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/qortal/controller/Controller.java b/src/main/java/org/qortal/controller/Controller.java index 9d80dba7..185f344a 100644 --- a/src/main/java/org/qortal/controller/Controller.java +++ b/src/main/java/org/qortal/controller/Controller.java @@ -678,7 +678,7 @@ public class Controller extends Thread { final int peersRemoved = peersBeforeComparison - peers.size(); if (peersRemoved > 0 && peers.size() > 0) - LOGGER.info(String.format("Ignoring %d peers on inferior chains. Peers remaining: %d", peersRemoved, peers.size())); + LOGGER.debug(String.format("Ignoring %d peers on inferior chains. Peers remaining: %d", peersRemoved, peers.size())); if (peers.isEmpty()) return; @@ -687,7 +687,7 @@ public class Controller extends Thread { StringBuilder finalPeersString = new StringBuilder(); for (Peer peer : peers) finalPeersString = finalPeersString.length() > 0 ? finalPeersString.append(", ").append(peer) : finalPeersString.append(peer); - LOGGER.info(String.format("Choosing random peer from: [%s]", finalPeersString.toString())); + LOGGER.debug(String.format("Choosing random peer from: [%s]", finalPeersString.toString())); } // Pick random peer to sync with diff --git a/src/main/java/org/qortal/controller/Synchronizer.java b/src/main/java/org/qortal/controller/Synchronizer.java index 62064d96..c0792117 100644 --- a/src/main/java/org/qortal/controller/Synchronizer.java +++ b/src/main/java/org/qortal/controller/Synchronizer.java @@ -139,7 +139,7 @@ public class Synchronizer { if (wereNewRequestsMade) { final long totalTimeTaken = System.currentTimeMillis() - startTime; - LOGGER.info(String.format("Finished searching for common blocks with %d peer%s. Found: %d. Total time taken: %d ms", peers.size(), (peers.size() != 1 ? "s" : ""), commonBlocksFound, totalTimeTaken)); + LOGGER.debug(String.format("Finished searching for common blocks with %d peer%s. Found: %d. Total time taken: %d ms", peers.size(), (peers.size() != 1 ? "s" : ""), commonBlocksFound, totalTimeTaken)); } return SynchronizationResult.OK;