iDigBio/idb-backend

Add logging for redis connection parameters

Closed this issue · 0 comments

Add logging here:

def get_redis_connection_params():
from kombu.utils.url import _parse_url
url = app.conf['broker_url']
scheme, host, port, user, password, path, query = _parse_url(url)
return {'host': host, 'port': port, 'db': path}

Specifically, for when this method is called:

def download():
rconn = get_redis_conn()

which then calls:

def get_redis_conn():
import redis
return redis.StrictRedis(**get_redis_connection_params())