0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd::server: Elide expensive argument (sys)calls when log message muted.

This commit is contained in:
Jason Volk 2023-02-06 12:14:45 -08:00
parent 86df5510d4
commit 6be344ae66

View file

@ -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)