Skip to content

Commit caa98b6

Browse files
avikivitydkropachev
authored andcommitted
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.
1 parent 8e6c4d4 commit caa98b6

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

cassandra/pool.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,6 @@ def _get_connection_for_routing_key(self, routing_key=None, keyspace=None, table
476476
# optimistic try to connect to it
477477
if shard_id is not None:
478478
if conn:
479-
log.debug(
480-
"Using connection to shard_id=%i on host %s for routing_key=%s",
481-
shard_id,
482-
self.host,
483-
routing_key
484-
)
485479
if conn.orphaned_threshold_reached and shard_id not in self._connecting:
486480
# The connection has met its orphaned stream ID limit
487481
# and needs to be replaced. Start opening a connection

0 commit comments

Comments
 (0)