diff --git a/include/ircd/logger.h b/include/ircd/logger.h index 3830e7047..6d8ba3397 100644 --- a/include/ircd/logger.h +++ b/include/ircd/logger.h @@ -113,21 +113,24 @@ struct ircd::log::console_quiet ~console_quiet(); }; +#ifdef RB_DEBUG struct ircd::log::debug { - #ifdef RB_DEBUG template debug(const char *const &fmt, args&&... a) { vlog(facility::DEBUG, fmt, va_rtti{std::forward(a)...}); } - #else +}; +#else +struct ircd::log::debug +{ debug(const char *const &, ...) { // Required in gcc 6.3.0 20170519, template param packs are not DCE'ed } - #endif }; +#endif struct ircd::log::info { @@ -147,21 +150,24 @@ struct ircd::log::notice } }; +#ifdef RB_DEBUG struct ircd::log::dwarning { - #ifdef RB_DEBUG template dwarning(const char *const &fmt, args&&... a) { vlog(facility::DWARNING, fmt, va_rtti{std::forward(a)...}); } - #else +}; +#else +struct ircd::log::dwarning +{ dwarning(const char *const &, ...) { // Required in gcc 6.3.0 20170519, template param packs are not DCE'ed } - #endif }; +#endif struct ircd::log::warning { @@ -172,21 +178,24 @@ struct ircd::log::warning } }; +#ifdef RB_DEBUG struct ircd::log::derror { - #ifdef RB_DEBUG template derror(const char *const &fmt, args&&... a) { vlog(facility::DERROR, fmt, va_rtti{std::forward(a)...}); } - #else +}; +#else +struct ircd::log::derror +{ derror(const char *const &, ...) { // Required in gcc 6.3.0 20170519, template param packs are not DCE'ed } - #endif }; +#endif struct ircd::log::error {