diff --git a/src/handlers/proxy.rs b/src/handlers/proxy.rs index 2bfad2b..8ae21da 100644 --- a/src/handlers/proxy.rs +++ b/src/handlers/proxy.rs @@ -1,5 +1,5 @@ use actix_web::{error::ErrorInternalServerError, web, HttpRequest, HttpResponse, Result}; -use log::warn; +use log::{error, warn}; use crate::app_state::AppState; use crate::handlers::serve_file::serve_file; @@ -37,7 +37,10 @@ pub async fn proxy_handler( "aac" => "audio/aac", "m4a" => "audio/m4a", "flac" => "audio/flac", - _ => return Err(ErrorInternalServerError("unsupported file format")), + _ => { + error!("unsupported file format"); + return Err(ErrorInternalServerError("unsupported file format")); + }, }; warn!("content_type: {}", content_type);