mirror of
https://github.com/JonasunderscoreJones/jonas_jones-api.git
synced 2025-10-22 16:59:17 +02:00
added IP in brackets
This commit is contained in:
parent
cdcf27b0fa
commit
350c9f722a
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ pub async fn serve() {
|
|||
let client_ip = fwd_for.unwrap_or_else(|| addr.map(|a| a.ip().to_string()).unwrap_or_else(|| String::from("unknown")));
|
||||
let path_str = path.as_str();
|
||||
|
||||
Logger::info(&format!(" {} {} from {}", method, path_str, ip_lookup(&client_ip)));
|
||||
Logger::info(&format!(" {} {} from {} ({})", method, path_str, ip_lookup(&client_ip), client_ip));
|
||||
});
|
||||
|
||||
// GET (any) => reply with return from handle_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue