0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd: Allow several debug msgs in release build; tweak facilities.

This commit is contained in:
Jason Volk 2020-11-30 20:26:21 -08:00
parent 3a13526dc5
commit ff9375a408
2 changed files with 10 additions and 6 deletions

View file

@ -246,8 +246,9 @@ bool
ircd::quit()
noexcept
{
log::debug
log::logf
{
log::star, log::level::DEBUG,
"IRCd quit requested from runlevel:%s ctx:%p main_context:%p",
reflect(run::level),
(const void *)ctx::current,
@ -297,8 +298,9 @@ void
ircd::cont()
noexcept
{
log::debug
log::logf
{
log::star, log::level::DEBUG,
"IRCd cont requested from runlevel:%s ctx:%p main_context:%p",
reflect(run::level),
(const void *)ctx::current,
@ -317,7 +319,7 @@ noexcept
log::notice
{
"IRCd resuming service in runlevel %s.",
log::star, "IRCd resuming service in runlevel %s.",
reflect(run::level),
};
}

View file

@ -126,7 +126,8 @@ try
log::notice
{
"IRCd %s", reflect(level)
log::star, "IRCd %s",
reflect(level)
};
log::flush();
@ -160,8 +161,9 @@ try
if(level == level::HALT)
return true;
log::debug
log::logf
{
log::general, log::level::DEBUG,
"IRCd level transition from '%s' to '%s' (dock:%zu callbacks:%zu)",
reflect(chadburn),
reflect(level),
@ -181,7 +183,7 @@ catch(const std::exception &e)
log::critical
{
"IRCd level change to '%s' :%s",
log::star, "IRCd level change to '%s' :%s",
reflect(new_level),
e.what()
};