Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 7bcd9d5

Browse files
committed
Merge pull request #502 from docker/499-redis-credentials
Don't log redis credentials
2 parents 5e06731 + 19cb0a7 commit 7bcd9d5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docker_registry/lib/cache.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def enable_redis_cache(cache, path):
2727
return
2828

2929
logger.info('Enabling storage cache on Redis')
30-
logger.info('Redis config: {0}'.format(cache))
30+
logger.info(
31+
'Redis host: {0}:{1} (db{2})'.format(cache.host, cache.port, cache.db)
32+
)
3133
redis_conn = redis.StrictRedis(
3234
host=cache.host,
3335
port=int(cache.port),
@@ -42,7 +44,10 @@ def enable_redis_lru(cache, path):
4244
logger.warn('LRU cache disabled!')
4345
return
4446
logger.info('Enabling lru cache on Redis')
45-
logger.info('Redis lru config: {0}'.format(cache))
47+
logger.info(
48+
'Redis lru host: {0}:{1} (db{2})'.format(cache.host, cache.port,
49+
cache.db)
50+
)
4651
lru.init(
4752
host=cache.host,
4853
port=cache.port,

0 commit comments

Comments
 (0)