This commit is contained in:
mubashir1osmani 2026-08-27 19:39:38 -05:00 committed by GitHub
commit 68f478dd77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,7 @@ from litellm.constants import (
)
from litellm.litellm_core_utils.core_helpers import _get_parent_otel_span_from_kwargs
from litellm.litellm_core_utils.coroutine_checker import coroutine_checker
from litellm.litellm_core_utils.secret_redaction import redact_string
from litellm.types.caching import (
RedisPipelineIncrementOperation,
RedisPipelineLpopOperation,
@ -688,8 +689,8 @@ class RedisCache(BaseCache):
if key is None:
verbose_logger.debug(
"LiteLLM Redis Caching: async set() skipped — key is None, value=%r",
value,
"LiteLLM Redis Caching: async set() skipped — key is None, value=%s",
redact_string(str(value)),
)
return None
@ -711,10 +712,10 @@ class RedisCache(BaseCache):
)
)
verbose_logger.error(
"LiteLLM Redis Caching: async set() - Got exception from REDIS %s, key=%r, value=%r",
"LiteLLM Redis Caching: async set() - Got exception from REDIS %s, key=%s, value=%s",
str(e),
key,
value,
redact_string(str(key)),
redact_string(str(value)),
)
raise e
@ -765,7 +766,7 @@ class RedisCache(BaseCache):
verbose_logger.error(
"LiteLLM Redis Caching: async set() - Got exception from REDIS %s, Writing value=%s",
str(e),
value,
redact_string(str(value)),
)
_record_swallowed_redis_failure(self._circuit_breaker, e)
@ -898,7 +899,7 @@ class RedisCache(BaseCache):
verbose_logger.error(
"LiteLLM Redis Caching: async set() - Got exception from REDIS %s, Writing value=%s",
str(e),
value,
redact_string(str(value)),
)
raise e
@ -937,7 +938,7 @@ class RedisCache(BaseCache):
verbose_logger.error(
"LiteLLM Redis Caching: async set_cache_sadd() - Got exception from REDIS %s, Writing value=%s",
str(e),
value,
redact_string(str(value)),
)
_record_swallowed_redis_failure(self._circuit_breaker, e)