fix(storage): enrich versioning fallback log (#4241)

This commit is contained in:
Zhengchao An
2026-07-03 22:11:05 +08:00
committed by GitHub
parent 6839e57c96
commit c9bf097595
+5 -1
View File
@@ -55,7 +55,11 @@ async fn bucket_versioning_config(bucket: &str) -> VersioningConfiguration {
match BucketVersioningSys::get(bucket).await {
Ok(cfg) => cfg,
Err(err) => {
tracing::warn!("{:?}", err);
tracing::warn!(
bucket = %bucket,
error = ?err,
"failed to load bucket versioning configuration; using default configuration"
);
VersioningConfiguration::default()
}
}