diff --git a/src/main/java/org/qora/controller/Controller.java b/src/main/java/org/qora/controller/Controller.java index 51eb779a..33854e0f 100644 --- a/src/main/java/org/qora/controller/Controller.java +++ b/src/main/java/org/qora/controller/Controller.java @@ -262,7 +262,7 @@ public class Controller extends Thread { Peer peer = peers.get(index); if (!Synchronizer.getInstance().synchronize(peer)) { - LOGGER.debug(String.format("Failed to synchronize with peer %s", peer)); + LOGGER.info(String.format("Failed to synchronize with peer %s", peer)); // Failure so don't use this peer again for a while try (final Repository repository = RepositoryManager.getRepository()) { @@ -275,10 +275,10 @@ public class Controller extends Thread { } return; + } else { + LOGGER.debug(String.format("Synchronized with peer %s", peer)); } - LOGGER.debug(String.format("Synchronized with peer %s", peer)); - // Broadcast our new height (if changed) int updatedHeight = getChainHeight(); if (updatedHeight != ourHeight) diff --git a/src/main/java/org/qora/controller/Synchronizer.java b/src/main/java/org/qora/controller/Synchronizer.java index 3b112246..d9e369c6 100644 --- a/src/main/java/org/qora/controller/Synchronizer.java +++ b/src/main/java/org/qora/controller/Synchronizer.java @@ -85,7 +85,7 @@ public class Synchronizer { // First signature is common block BlockData commonBlockData = this.repository.getBlockRepository().fromSignature(signatures.get(0)); final int commonBlockHeight = commonBlockData.getHeight(); - LOGGER.info(String.format("Common block with peer %s is at height %d", peer, commonBlockHeight)); + LOGGER.debug(String.format("Common block with peer %s is at height %d", peer, commonBlockHeight)); signatures.remove(0); // If common block is peer's latest block then we simply have a longer chain to peer, so exit now