test(redis): explain debug logger patch

This commit is contained in:
eugene-yao-zocdoc 2026-08-25 11:18:23 -04:00
parent f304b2ba7b
commit 6dff830343

View file

@ -419,7 +419,9 @@ def test_redis_cache_key_does_not_inspect_provider(clear_llm_client_cache):
def test_pretty_print_never_expands_credential_provider(capsys):
secret = "aaaa-UNIQUE-SENTINEL-bbbb"
with patch("litellm._redis.verbose_logger.isEnabledFor", return_value=True):
with patch( # test-quality-ok: enable the debug-only printer without changing process-wide logger state
"litellm._redis.verbose_logger.isEnabledFor", return_value=True
):
_pretty_print_redis_config(
redis_kwargs={
"host": "redis-host",