mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::server: Elide expensive argument (sys)calls when log message muted.
This commit is contained in:
parent
86df5510d4
commit
6be344ae66
1 changed files with 3 additions and 1 deletions
|
@ -1307,6 +1307,9 @@ noexcept try
|
|||
{
|
||||
assert(link.peer);
|
||||
++tag_done;
|
||||
}
|
||||
|
||||
if(tag.request && (ircd::debugmode || RB_DEBUG_LEVEL))
|
||||
log::logf
|
||||
{
|
||||
request::log[1], uint(tag.state.status) >= 300? log::DERROR: log::DEBUG,
|
||||
|
@ -1321,7 +1324,6 @@ noexcept try
|
|||
tag.state.content_length,
|
||||
tag.request->in.chunks.size(),
|
||||
};
|
||||
}
|
||||
|
||||
// Peer-level actions for any specific HTTP codes
|
||||
switch(tag.state.status)
|
||||
|
|
Loading…
Reference in a new issue