summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-11-29 19:38:54 +0100
committerGitHub <noreply@github.com>2022-11-29 19:38:54 +0100
commit768659f2bdd1fbd376d809c2a727a4ea0768b973 (patch)
treeba7311719ea940f5703333d0a204a4f53f4ba536
parenta8359dd4d341c8fe66e37f6ae2422e1f2658632c (diff)
parente19218c6a9006746e5dec177f908a1677595b73c (diff)
downloadsearxng-768659f2bdd1fbd376d809c2a727a4ea0768b973.tar.gz
searxng-768659f2bdd1fbd376d809c2a727a4ea0768b973.zip
Merge pull request #1988 from ryankask/fix-redis-conn-logging
Copy client connection kwargs before mutating
-rw-r--r--searx/shared/redisdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/shared/redisdb.py b/searx/shared/redisdb.py
index ba4a76baa..d8e29d911 100644
--- a/searx/shared/redisdb.py
+++ b/searx/shared/redisdb.py
@@ -47,7 +47,7 @@ def initialize():
_CLIENT = redis.Redis.from_url(redis_url)
# log the parameters as seen by the redis lib, without the password
- kwargs = _CLIENT.get_connection_kwargs()
+ kwargs = _CLIENT.get_connection_kwargs().copy()
kwargs.pop('password', None)
kwargs = ' '.join([f'{k}={v!r}' for k, v in kwargs.items()])
logger.info("connecting to Redis %s", kwargs)