diff --git a/src/routes.rs b/src/routes.rs index 98c8f78..2c335f0 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -12,7 +12,7 @@ use actix_web::error::{ErrorBadRequest, ErrorInternalServerError, ErrorNotFound} use actix_web::{delete, error, get, post, put, web, Either, Error, HttpResponse}; use anyhow::Result; use futures_util::StreamExt; -use log::{debug, info, trace}; +use log::{debug, info, trace, error}; use serde::Deserialize; use serde_json::json; use std::collections::HashMap; @@ -62,6 +62,8 @@ pub async fn get_raw( if !file_path.is_executable() { opener::open(file_path).map_err(error::ErrorServiceUnavailable)?; return Ok(Either::B(HttpResponse::NoContent().finish())); + } else { + error!("Attempted to natively open {:?}, which is executable!", file_path); } } Err(error::ErrorForbidden(""))