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

ircd::log: Init with DERROR/DWARNING levels off for console in release-mode compilations.

This commit is contained in:
Jason Volk 2019-12-03 16:45:59 -08:00
parent 6b69e240d8
commit cff6a3b5d2

View file

@ -117,9 +117,18 @@ ircd::log::hook;
void
ircd::log::init()
{
// DEBUG is very noisy so it always starts off by default unless -debug
if(!ircd::debugmode)
console_disable(level::DEBUG);
// In non-debug-mode compilation we don't want DWARNING and DERROR
// messages which weren't DCE'ed to be displayed by default.
if(!RB_DEBUG_LEVEL && !ircd::debugmode)
{
console_disable(level::DERROR);
console_disable(level::DWARNING);
}
if(ircd::write_avoid)
return;