mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Merge f4891a273c into e6c4580a31
This commit is contained in:
commit
68f478dd77
1 changed files with 9 additions and 8 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue