diff --git a/include/ircd/server/request.h b/include/ircd/server/request.h index 1475ba32e..a7c2c7d38 100644 --- a/include/ircd/server/request.h +++ b/include/ircd/server/request.h @@ -110,7 +110,7 @@ struct ircd::server::request using each_closure = std::function; static const opts opts_default; - static log::log log; + static log::log log[2]; server::tag *tag {nullptr}; diff --git a/ircd/server.cc b/ircd/server.cc index 2d7a4f5bf..e477b12da 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -468,7 +468,8 @@ ircd::server::canonize(const net::hostport &hostport) decltype(ircd::server::request::log) ircd::server::request::log { - "server.request" + { "server.request" }, + { "server.response" }, }; decltype(ircd::server::request::opts_default) @@ -498,7 +499,7 @@ ircd::server::cancel(request &request) log::debug { - request::log, "%s cancel commit:%d w:%zu hr:%zu cr:%zu", + request::log[1], "%s cancel commit:%d w:%zu hr:%zu cr:%zu", loghead(request), tag.committed(), tag.state.written, @@ -1301,7 +1302,7 @@ noexcept try ++tag_done; log::logf { - request::log, uint(tag.state.status) >= 300? log::DERROR: log::DEBUG, + request::log[1], uint(tag.state.status) >= 300? log::DERROR: log::DEBUG, "%s [%u] %s wt:%zu rt:%zu hr:%zu cr:%zu cl:%zu chunks:%zu", loghead(*tag.request), uint(tag.state.status), @@ -2503,7 +2504,7 @@ ircd::server::link::process_write(tag &tag) if(tag.request) log::debug { - request::log, "%s wt:%zu on %s", + request::log[0], "%s wt:%zu on %s", loghead(*tag.request), tag.write_size(), loghead(*this),