From cf10d13ac59da032d850e6665dcc786febbab936 Mon Sep 17 00:00:00 2001 From: David Manouchehri Date: Thu, 13 Jun 2024 20:57:51 +0000 Subject: [PATCH] fix(caching.py): Stop throwing constant spam errors on every single S3 cache miss. Fixes #4146. --- litellm/caching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/caching.py b/litellm/caching.py index 497dd2371c..6b58cf5276 100644 --- a/litellm/caching.py +++ b/litellm/caching.py @@ -1192,7 +1192,7 @@ class S3Cache(BaseCache): return cached_response except botocore.exceptions.ClientError as e: if e.response["Error"]["Code"] == "NoSuchKey": - verbose_logger.error( + verbose_logger.debug( f"S3 Cache: The specified key '{key}' does not exist in the S3 bucket." ) return None