mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
ircd::log: Allow CRITICAL log messages to break through suppression.
This commit is contained in:
parent
15625db9a9
commit
a67228e8b5
1 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,12 @@ ircd::log::console_quiet::console_quiet(const bool &showmsg)
|
|||
std::copy(begin(console_err), end(console_err), begin(quieted_err));
|
||||
std::fill(begin(console_out), end(console_out), false);
|
||||
std::fill(begin(console_err), end(console_err), false);
|
||||
|
||||
// Make a special amend to never suppress CRITICAL messages because
|
||||
// these are usually for a crash or major b0rk where the console
|
||||
// user probably won't be continuing normally anyway...
|
||||
if(quieted_out[CRITICAL]) console_out[CRITICAL] = true;
|
||||
if(quieted_err[CRITICAL]) console_err[CRITICAL] = true;
|
||||
}
|
||||
|
||||
ircd::log::console_quiet::~console_quiet()
|
||||
|
|
Loading…
Reference in a new issue