From f671b7661126aadadf29b7f45ee34b8f0890c0bb Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 23 Oct 2024 16:26:57 +0300 Subject: [PATCH] debugparse2 --- src/handlers/proxy.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handlers/proxy.rs b/src/handlers/proxy.rs index 9e90c16..2bfca87 100644 --- a/src/handlers/proxy.rs +++ b/src/handlers/proxy.rs @@ -137,9 +137,9 @@ pub async fn proxy_handler( }; } Ok(None) => { - warn!("cannot find stored path for: {}", requested_res); + warn!("cannot find stored path for: {}", filekey); // download from aws to storj - match load_file_from_s3(&state.aws_client, &state.bucket, &requested_res).await { + match load_file_from_s3(&state.aws_client, &state.bucket, &filekey).await { Ok(filedata) => { thumbdata_save(filedata.clone(), &state, &filekey, content_type.to_string()) .await; @@ -158,7 +158,7 @@ pub async fn proxy_handler( Ok(HttpResponse::Ok().content_type(content_type).body(filedata)) }, Err(e) => { - error!("cannot download {} from aws: {}", requested_res, e); + error!("cannot download {} from aws: {}", filekey, e); Err(ErrorInternalServerError(e)) }, }