diff --git a/crates/symbolicator-service/src/download/s3.rs b/crates/symbolicator-service/src/download/s3.rs index ee9dec99e..ba0a56063 100644 --- a/crates/symbolicator-service/src/download/s3.rs +++ b/crates/symbolicator-service/src/download/s3.rs @@ -164,7 +164,10 @@ impl S3Downloader { _ if matches!(err.code(), Some("NoSuchBucket" | "NoSuchKey" | "NotFound")) => { Err(CacheError::NotFound) } - _ => { + // Log errors, filtering out some uninteresting ones. + // + // * PermanentRedirect is a user error. + _ if !matches!(err.code(), Some("PermanentRedirect")) => { tracing::error!( error = &err as &dyn std::error::Error, "S3 request failed: {:?}", @@ -173,6 +176,10 @@ impl S3Downloader { let details = err.to_string(); Err(CacheError::DownloadError(details)) } + _ => { + let details = err.to_string(); + Err(CacheError::DownloadError(details)) + } }; } };