Spacing fix. Nothing to see here.
This commit is contained in:
parent
86337e3a9b
commit
1b96df2b5f
1 changed files with 4 additions and 4 deletions
|
@ -914,12 +914,12 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
svr.set_logger([](const Request& req, const Response& res) {
|
svr.set_logger([](const Request& req, const Response& res) {
|
||||||
json log = {
|
json log = {
|
||||||
{ "status", res.status },
|
{ "status", res.status },
|
||||||
{ "request", req.body },
|
{ "request", req.body },
|
||||||
{ "response", res.body },
|
{ "response", res.body },
|
||||||
};
|
};
|
||||||
fprintf(stdout, "http_request: request: %s %s \nhttp_request: log: %s\n", req.method.c_str(), req.path.c_str(), log.dump().c_str());
|
fprintf(stdout, "http_request: request: %s %s \nhttp_request: log: %s\n", req.method.c_str(), req.path.c_str(), log.dump().c_str());
|
||||||
});
|
});
|
||||||
|
|
||||||
svr.set_exception_handler([](const Request &, Response &res, std::exception_ptr ep) {
|
svr.set_exception_handler([](const Request &, Response &res, std::exception_ptr ep) {
|
||||||
auto fmt = "500 Internal Server Error\n%s";
|
auto fmt = "500 Internal Server Error\n%s";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue