From ff9375a4080c066af0e4b4345bdaff7d424e243e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 30 Nov 2020 20:26:21 -0800 Subject: [PATCH] ircd: Allow several debug msgs in release build; tweak facilities. --- ircd/ircd.cc | 8 +++++--- ircd/run.cc | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ircd/ircd.cc b/ircd/ircd.cc index 0a2cbdb51..57455123f 100644 --- a/ircd/ircd.cc +++ b/ircd/ircd.cc @@ -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), }; } diff --git a/ircd/run.cc b/ircd/run.cc index 2e6948896..e238796bb 100644 --- a/ircd/run.cc +++ b/ircd/run.cc @@ -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() };