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 20:57:51 +00:00
parent 944d95d636
commit cf10d13ac5
No known key found for this signature in database

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