mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
Merge f4891a273c into 252c71c0b2
This commit is contained in:
commit
a52bef00e1
1 changed files with 9 additions and 8 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue