From 70190ec78a6d533dc871e268926613fe62c57b65 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Fri, 12 Jul 2024 08:46:59 +0300 Subject: [PATCH] refactoring --- .../java/org/redisson/cluster/ClusterConnectionManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redisson/src/main/java/org/redisson/cluster/ClusterConnectionManager.java b/redisson/src/main/java/org/redisson/cluster/ClusterConnectionManager.java index a148a79bd..4da633109 100644 --- a/redisson/src/main/java/org/redisson/cluster/ClusterConnectionManager.java +++ b/redisson/src/main/java/org/redisson/cluster/ClusterConnectionManager.java @@ -901,7 +901,9 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager { RedisURI address = addresses.get(index); if (addresses.size() == 1) { - log.debug("{} resolved to {}", clusterNodeInfo.getAddress(), address); + if (!clusterNodeInfo.getAddress().equals(address)) { + log.debug("{} resolved to {}", clusterNodeInfo.getAddress(), address); + } } else { log.debug("{} resolved to {} and {} selected", clusterNodeInfo.getAddress(), addresses, address); }