Skip to content

Commit

Permalink
debug stat 404 issue: try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohaiyuan committed Feb 9, 2025
1 parent 290b8ca commit fcdf1ca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/src/services/swift/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ impl Access for SwiftBackend {

async fn stat(&self, path: &str, _args: OpStat) -> Result<RpStat> {
let resp = self.core.swift_get_metadata(path).await?;

debug!(
"swift: stat operation for path {}, response status: {}",
path,
Expand All @@ -234,13 +233,10 @@ impl Access for SwiftBackend {
StatusCode::OK | StatusCode::NO_CONTENT => {
let headers = resp.headers();
let mut meta = parse_into_metadata(path, headers)?;

// 添加日志:记录解析前的原始头部
log::debug!("swift: parsing user metadata from headers: {:?}", headers);

let user_meta = parse_prefixed_headers(headers, "x-object-meta-");
log::debug!("swift: parsed user metadata: {:?}", user_meta);

if !user_meta.is_empty() {
meta.with_user_metadata(user_meta);
}
Expand Down

0 comments on commit fcdf1ca

Please sign in to comment.