log: do not log method
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user