fix(caching.py): Stop throwing constant spam errors on every single S3 cache miss. Fixes #4146.

This commit is contained in:
David Manouchehri
2024-06-13 21:13:29 -07:00
committed by Krrish Dholakia
parent 4408c7889b
commit ddb60edb74
+1 -1
View File
@@ -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