From 83aaa5cce84cdecf9359a7a6d74e42f76b509d24 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Sun, 23 Nov 2025 13:50:08 +0800 Subject: [PATCH] log: do not log method --- src/proxy.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/proxy.rs b/src/proxy.rs index a911555..9f301fc 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -81,14 +81,8 @@ pub async fn proxy_handler( } }; - let method = decrypted_request_log - .get("method") - .and_then(Value::as_str) - .unwrap_or("UNKNOWN"); info!( - "[{}] {}\nRequest:\n{}\nResponse:\n{}\n{}", - chrono::Local::now().format("%Y/%m/%d %H:%M:%S"), - method, + "\nRequest:\n{}\nResponse:\n{}\n{}", serde_json::to_string_pretty(&decrypted_request_log).unwrap_or_default(), decrypted_response_log, "-".repeat(80),