summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoni Nevalainen <joni-@users.noreply.github.com>2022-03-23 11:16:09 +0200
committerGitHub <noreply@github.com>2022-03-23 11:16:09 +0200
commit032fd227d3325a24a47b9d33fc42bccaafba28e2 (patch)
treeb16990589611a9e5c700407faf75b7d92e1bd0d5
parent878e2f2cd961bab5bf00d9b98e4fc7d16d5acfe0 (diff)
downloadredis-py-032fd227d3325a24a47b9d33fc42bccaafba28e2.tar.gz
Remove verbose logging from cluster initializers (#2055)
-rw-r--r--CHANGES1
-rw-r--r--redis/cluster.py4
2 files changed, 1 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index ca2d2e8..aa5192d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,7 @@
* Create codeql-analysis.yml (#1988). Thanks @chayim
* Add limited support for Lua scripting with RedisCluster
* Implement `.lock()` method on RedisCluster
+ * Remove verbose logging when initializing ClusterPubSub, ClusterPipeline or RedisCluster
* 4.1.3 (Feb 8, 2022)
* Fix flushdb and flushall (#1926)
diff --git a/redis/cluster.py b/redis/cluster.py
index 09c9ab7..287fd4f 100644
--- a/redis/cluster.py
+++ b/redis/cluster.py
@@ -518,8 +518,6 @@ class RedisCluster(RedisClusterCommands):
RedisClusterException:
- db (Redis do not support database SELECT in cluster mode)
"""
- log.info("Creating a new instance of RedisCluster client")
-
if startup_nodes is None:
startup_nodes = []
@@ -1670,7 +1668,6 @@ class ClusterPubSub(PubSub):
:type host: str
:type port: int
"""
- log.info("Creating new instance of ClusterPubSub")
self.node = None
self.set_pubsub_node(redis_cluster, node, host, port)
connection_pool = (
@@ -1802,7 +1799,6 @@ class ClusterPipeline(RedisCluster):
**kwargs,
):
""" """
- log.info("Creating new instance of ClusterPipeline")
self.command_stack = []
self.nodes_manager = nodes_manager
self.commands_parser = commands_parser