log: do not log method

This commit is contained in:
2025-11-23 13:50:08 +08:00
parent 226e8cbf4f
commit 83aaa5cce8

View File

@@ -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!( info!(
"[{}] {}\nRequest:\n{}\nResponse:\n{}\n{}", "\nRequest:\n{}\nResponse:\n{}\n{}",
chrono::Local::now().format("%Y/%m/%d %H:%M:%S"),
method,
serde_json::to_string_pretty(&decrypted_request_log).unwrap_or_default(), serde_json::to_string_pretty(&decrypted_request_log).unwrap_or_default(),
decrypted_response_log, decrypted_response_log,
"-".repeat(80), "-".repeat(80),