mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
ircd::log: Init with DERROR/DWARNING levels off for console in release-mode compilations.
This commit is contained in:
parent
6b69e240d8
commit
cff6a3b5d2
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue