This commit is contained in:
mubashir1osmani 2026-09-18 04:10:39 -07:00 • committed by GitHub
commit a52bef00e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,6 +35,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,
@ -988,8 +989,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
@ -1011,10 +1012,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
@ -1065,7 +1066,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)
@ -1238,7 +1239,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
@ -1277,7 +1278,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)