server : log style consistency
This commit is contained in:
parent
84df4b58d9
commit
cd5b922f26
1 changed files with 12 additions and 14 deletions
|
@ -2613,21 +2613,19 @@ static void log_server_request(const httplib::Request &req, const httplib::Respo
|
|||
return;
|
||||
}
|
||||
|
||||
LOG_INFO("request",
|
||||
{
|
||||
{"remote_addr", req.remote_addr},
|
||||
{"remote_port", req.remote_port},
|
||||
{"status", res.status},
|
||||
{"method", req.method},
|
||||
{"path", req.path},
|
||||
{"params", req.params},
|
||||
});
|
||||
LOG_INFO("request", {
|
||||
{"remote_addr", req.remote_addr},
|
||||
{"remote_port", req.remote_port},
|
||||
{"status", res.status},
|
||||
{"method", req.method},
|
||||
{"path", req.path},
|
||||
{"params", req.params},
|
||||
});
|
||||
|
||||
LOG_VERBOSE("request",
|
||||
{
|
||||
{"request", req.body},
|
||||
{"response", res.body},
|
||||
});
|
||||
LOG_VERBOSE("request", {
|
||||
{"request", req.body},
|
||||
{"response", res.body},
|
||||
});
|
||||
}
|
||||
|
||||
struct token_translator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue