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

Commit cbfec96

Browse files
committed
Don't log redis credentials
1 parent c8b0a8f commit cbfec96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker_registry/lib/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ 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('Redis host: {0}:{1}'.format(cache.host, cache.port))
3131
redis_conn = redis.StrictRedis(
3232
host=cache.host,
3333
port=int(cache.port),
@@ -42,7 +42,7 @@ def enable_redis_lru(cache, path):
4242
logger.warn('LRU cache disabled!')
4343
return
4444
logger.info('Enabling lru cache on Redis')
45-
logger.info('Redis lru config: {0}'.format(cache))
45+
logger.info('Redis lru host: {0}:{1}'.format(cache.host, cache.port))
4646
lru.init(
4747
host=cache.host,
4848
port=cache.port,

0 commit comments

Comments
 (0)