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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("request",
|
LOG_INFO("request", {
|
||||||
{
|
{"remote_addr", req.remote_addr},
|
||||||
{"remote_addr", req.remote_addr},
|
{"remote_port", req.remote_port},
|
||||||
{"remote_port", req.remote_port},
|
{"status", res.status},
|
||||||
{"status", res.status},
|
{"method", req.method},
|
||||||
{"method", req.method},
|
{"path", req.path},
|
||||||
{"path", req.path},
|
{"params", req.params},
|
||||||
{"params", req.params},
|
});
|
||||||
});
|
|
||||||
|
|
||||||
LOG_VERBOSE("request",
|
LOG_VERBOSE("request", {
|
||||||
{
|
{"request", req.body},
|
||||||
{"request", req.body},
|
{"response", res.body},
|
||||||
{"response", res.body},
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct token_translator
|
struct token_translator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue