fix(caching.py): use print verbose for logging error

This commit is contained in:
Krrish Dholakia 2024-02-15 18:12:09 -08:00
parent 66c7e35a97
commit 74381a2d06

View file

@ -124,7 +124,7 @@ class RedisCache(BaseCache):
self.redis_client.set(name=key, value=str(value), ex=ttl)
except Exception as e:
# NON blocking - notify users Redis is throwing an exception
logging.debug("LiteLLM Caching: set() - Got exception from REDIS : ", e)
print_verbose("LiteLLM Caching: set() - Got exception from REDIS : ", e)
async def async_set_cache(self, key, value, **kwargs):
_redis_client = self.init_async_client()