From 5f8adf023f3e267bae8e0c64a7425913d8de4832 Mon Sep 17 00:00:00 2001 From: minish Date: Sat, 2 Dec 2023 15:58:00 -0500 Subject: [PATCH] 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 --- src/view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.rs b/src/view.rs index 40e00d8..fabad5a 100644 --- a/src/view.rs +++ b/src/view.rs @@ -13,7 +13,7 @@ use bytes::Bytes; use hyper::{http::HeaderValue, StatusCode}; use tokio::{fs::File, runtime::Handle}; use tokio_util::io::ReaderStream; -use tracing::{error, debug, warn}; +use tracing::{error, debug, info}; /// Responses for a successful view operation pub enum ViewSuccess { @@ -134,7 +134,7 @@ pub async fn view( .components() .any(|x| !matches!(x, Component::Normal(_))) { - warn!("a request attempted path traversal"); + info!("a request attempted path traversal"); return Err(ViewError::NotFound); }