0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::log: Remove duplicate condition for __assert_fail.

This commit is contained in:
Jason Volk 2020-02-10 18:48:01 -08:00
parent 4007e4f2e2
commit c4f294810c

View file

@ -465,8 +465,7 @@ struct ircd::log::critical
critical(const log &log, const string_view &fmt, args&&... a)
{
vlog(log, level::CRITICAL, fmt, va_rtti{std::forward<args>(a)...});
#ifndef NDEBUG
#if defined(RB_ASSERT)
__assert_fail("critical",
"critical log level", 0,
"CRITICAL messages trap for debugging when assertions are enabled");
@ -480,8 +479,7 @@ struct ircd::log::critical
critical(const string_view &fmt, args&&... a)
{
vlog(general, level::CRITICAL, fmt, va_rtti{std::forward<args>(a)...});
#ifndef NDEBUG
#if defined(RB_ASSERT)
__assert_fail("critical",
"critical log level", 0,
"CRITICAL messages trap for debugging when assertions are enabled");