server : log style consistency

This commit is contained in:
Georgi Gerganov 2024-02-24 15:05:15 +02:00
parent 84df4b58d9
commit cd5b922f26
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -2613,8 +2613,7 @@ 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},
@ -2623,8 +2622,7 @@ static void log_server_request(const httplib::Request &req, const httplib::Respo
{"params", req.params}, {"params", req.params},
}); });
LOG_VERBOSE("request", LOG_VERBOSE("request", {
{
{"request", req.body}, {"request", req.body},
{"response", res.body}, {"response", res.body},
}); });