0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-18 17:50:16 +01:00

ircd::server: Permit tag result debuglog in release mode.

This commit is contained in:
Jason Volk 2020-03-16 21:55:42 -07:00
parent cf9ecb2a22
commit 730d99b055

View file

@ -1058,11 +1058,15 @@ noexcept try
};
if(tag.request)
log::debug
{
assert(link.peer);
log::logf
{
request::log, "%s [%u] wt:%zu rt:%zu hr:%zu cr:%zu cl:%zu chunks:%zu",
request::log, 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),
link.peer->hostcanon,
tag.write_size(),
tag.read_size(),
tag.state.head_read,
@ -1070,6 +1074,7 @@ noexcept try
tag.state.content_length,
tag.request->in.chunks.size(),
};
}
if(link.tag_committed() >= link.tag_commit_max())
link.wait_writable();