lower path traversal warning to an info

the new default log level is warning
so i don't want it to be possible to spam server logs on default config
This commit is contained in:
minish 2023-12-02 15:58:00 -05:00
parent d9f560677a
commit 5f8adf023f
Signed by: min
GPG Key ID: FEECFF24EF0CE9E9
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use bytes::Bytes;
use hyper::{http::HeaderValue, StatusCode}; use hyper::{http::HeaderValue, StatusCode};
use tokio::{fs::File, runtime::Handle}; use tokio::{fs::File, runtime::Handle};
use tokio_util::io::ReaderStream; use tokio_util::io::ReaderStream;
use tracing::{error, debug, warn}; use tracing::{error, debug, info};
/// Responses for a successful view operation /// Responses for a successful view operation
pub enum ViewSuccess { pub enum ViewSuccess {
@ -134,7 +134,7 @@ pub async fn view(
.components() .components()
.any(|x| !matches!(x, Component::Normal(_))) .any(|x| !matches!(x, Component::Normal(_)))
{ {
warn!("a request attempted path traversal"); info!("a request attempted path traversal");
return Err(ViewError::NotFound); return Err(ViewError::NotFound);
} }