Skip to content

Commit 9a4dc62

Browse files
authored
add debug log of redis connection info (#105)
1 parent 572938a commit 9a4dc62

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

backend/velour_api/jobs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
REDIS_PASSWORD = os.getenv("REDIS_PASSWORD")
1616
REDIS_USERNAME = os.getenv("REDIS_USERNAME")
1717

18+
logger.debug(
19+
f"REDIS_HOST: {REDIS_HOST}, REDIS_PORT: {REDIS_PORT}, REDIS_DB: {REDIS_DB}, "
20+
f"REDIS_PASSWORD: {'null' if REDIS_PASSWORD is None else 'not null'}, REDIS_USERNAME: {REDIS_USERNAME} "
21+
)
22+
1823
# global connection to redis
1924
r: redis.Redis = None
2025

0 commit comments

Comments
 (0)