From e4a064c3e0c5e28e78a2535d88e5b676ca0db7da Mon Sep 17 00:00:00 2001 From: arloor Date: Fri, 27 Sep 2024 23:56:24 +0800 Subject: [PATCH] Refactor log statements in proxy.rs --- rust_http_proxy/src/proxy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust_http_proxy/src/proxy.rs b/rust_http_proxy/src/proxy.rs index 73864ec..7cf1cf3 100644 --- a/rust_http_proxy/src/proxy.rs +++ b/rust_http_proxy/src/proxy.rs @@ -37,7 +37,7 @@ use hyper::{ use hyper_util::client::legacy::{self, connect::HttpConnector}; use hyper_util::rt::TokioExecutor; use hyper_util::rt::TokioIo; -use log::{debug, info, warn}; +use log::{info, trace, warn}; use percent_encoding::percent_decode_str; use prom_label::Label; use prometheus_client::{ @@ -92,7 +92,7 @@ impl ProxyHandler { } redirect_bachpaths.sort_by(|a, b| a.redirect_url.cmp(&b.redirect_url).reverse()); for ele in redirect_bachpaths.iter() { - debug!("find redirect back path for: {}**", ele.redirect_url); + trace!("find redirect back path for: {}**", ele.redirect_url); } #[cfg(target_os = "linux")]