From eff5c33588f6d3edc696c199992fa4289d0b2615 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sat, 4 Apr 2026 18:57:39 +0300 Subject: [PATCH] pool: drop per-query connection log The pool module emits a DEBUG log message when selecting a connection for a query. Emitting a log message for every query is too noisy. Since Python logging lacks a TRACE level, just remove the log. --- cassandra/pool.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cassandra/pool.py b/cassandra/pool.py index 2da657256f..227e1b5315 100644 --- a/cassandra/pool.py +++ b/cassandra/pool.py @@ -476,12 +476,6 @@ def _get_connection_for_routing_key(self, routing_key=None, keyspace=None, table # optimistic try to connect to it if shard_id is not None: if conn: - log.debug( - "Using connection to shard_id=%i on host %s for routing_key=%s", - shard_id, - self.host, - routing_key - ) if conn.orphaned_threshold_reached and shard_id not in self._connecting: # The connection has met its orphaned stream ID limit # and needs to be replaced. Start opening a connection