debugparse
All checks were successful
deploy / deploy (push) Successful in 55s

This commit is contained in:
2024-10-23 16:21:18 +03:00
parent 322c50de57
commit 6206a68697
2 changed files with 5 additions and 3 deletions

View File

@@ -22,6 +22,8 @@ pub async fn proxy_handler(
// парсим GET запрос
let (base_filename, requested_width, extension) = parse_file_path(&normalized_path);
warn!("detected file extension: {}", extension);
warn!("base_filename: {}", base_filename);
warn!("requested width: {}", requested_width);
let ext = extension.as_str().to_lowercase();
warn!("normalized to lowercase: {}", ext);
let filekey = format!("{}.{}", base_filename, &ext);
@@ -135,7 +137,7 @@ pub async fn proxy_handler(
};
}
Ok(None) => {
warn!("download from aws to storj: {}", requested_res);
warn!("cannot find stored path for: {}", requested_res);
// download from aws to storj
match load_file_from_s3(&state.aws_client, &state.bucket, &requested_res).await {
Ok(filedata) => {