From e2bc60bf4c82f5fff04f949d1776363854830f3c Mon Sep 17 00:00:00 2001 From: sylwiaszunejko Date: Fri, 6 Dec 2024 14:47:46 +0100 Subject: [PATCH] Do not throw a warning for zero-token node --- cassandra/cluster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cassandra/cluster.py b/cassandra/cluster.py index bbad441118..14c3074e85 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -4088,8 +4088,8 @@ def _is_valid_peer(row): return False if "tokens" in row and not row.get("tokens"): - log.warning( - "Found an invalid row for peer - tokens is None (broadcast_rpc: %s, host_id: %s). Ignoring host." % + log.debug( + "Found a zero-token node - tokens is None (broadcast_rpc: %s, host_id: %s). Ignoring host." % (broadcast_rpc, host_id)) return False