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:
parent
4007e4f2e2
commit
c4f294810c
1 changed files with 2 additions and 4 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue