mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aurweb.redis: Reduce logging
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
5a175bd92a
commit
f086457741
1 changed files with 2 additions and 2 deletions
|
@ -36,13 +36,13 @@ def redis_connection(): # pragma: no cover
|
||||||
|
|
||||||
# If we haven't initialized redis yet, construct a pool.
|
# If we haven't initialized redis yet, construct a pool.
|
||||||
if disabled:
|
if disabled:
|
||||||
logger.debug("Initializing fake Redis instance.")
|
|
||||||
if pool is None:
|
if pool is None:
|
||||||
|
logger.debug("Initializing fake Redis instance.")
|
||||||
pool = FakeConnectionPool()
|
pool = FakeConnectionPool()
|
||||||
return pool.handle
|
return pool.handle
|
||||||
else:
|
else:
|
||||||
logger.debug("Initializing real Redis instance.")
|
|
||||||
if pool is None:
|
if pool is None:
|
||||||
|
logger.debug("Initializing real Redis instance.")
|
||||||
redis_addr = aurweb.config.get("options", "redis_address")
|
redis_addr = aurweb.config.get("options", "redis_address")
|
||||||
pool = ConnectionPool.from_url(redis_addr)
|
pool = ConnectionPool.from_url(redis_addr)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue