diff --git a/include/ircd/logger.h b/include/ircd/logger.h index e4ffeb742..67a925745 100644 --- a/include/ircd/logger.h +++ b/include/ircd/logger.h @@ -124,7 +124,7 @@ struct ircd::log::hook /// Lower level interface; this is not a template and defined in the unit. struct ircd::log::vlog { - vlog(const log &log, const level &, const string_view &fmt, const va_rtti &ap); + vlog(const log &log, const level &, const string_view &fmt, const va_rtti &ap) noexcept; }; /// Lower level interface; allows log facility and level to be specified at diff --git a/ircd/logger.cc b/ircd/logger.cc index 03c801f5d..941e31c04 100644 --- a/ircd/logger.cc +++ b/ircd/logger.cc @@ -476,6 +476,7 @@ ircd::log::vlog::vlog(const log &log, const level &lev, const string_view &fmt, const va_rtti &ap) +noexcept { if(!is_main_thread() && likely(ios::available())) {