aurweb.redis: Reduce logging

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-08-17 21:52:59 -07:00
parent 5a175bd92a
commit f086457741
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -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)