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:
parent
cf9ecb2a22
commit
730d99b055
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue