0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-08 21:18:57 +02:00

ircd::log: Add condition to further negate mask negation of stderr for startup in -quiet mode.

This commit is contained in:
Jason Volk 2021-01-07 22:37:44 -08:00
parent 0d641aca00
commit 3e5f297605

View file

@ -706,8 +706,10 @@ noexcept
copy_to_stderr &= !console_quiet_stderr[lev];
// Note that CRITICAL messages unconditionally hit stderr even if their
// level and facility are muted.
copy_to_stderr |= lev == level::CRITICAL;
// level and facility are muted. The only CRITICAL message which won't
// hit stderr is the initial startup diagnostic if console logging is
// quieted at startup.
copy_to_stderr |= lev == level::CRITICAL && ios::epoch() != 0;
ret |= copy_to_stdout | copy_to_stderr;
if(likely(!(copy_to_stdout | copy_to_stderr) || !msg))