log: don't explicitly re-open log for failed assertions
This was needed before commit16e4fd87c5
added a mode that opens the log fds for every single log message. This mode is used in execute.c since then making the explicit call to log_open unnecessary. This basically revertsea89a119cd
.
This commit is contained in:
parent
1c7466aa2e
commit
21fd6bc263
|
@ -838,7 +838,6 @@ _noreturn_ void log_assert_failed_realm(
|
||||||
const char *file,
|
const char *file,
|
||||||
int line,
|
int line,
|
||||||
const char *func) {
|
const char *func) {
|
||||||
(void) log_open();
|
|
||||||
log_assert(LOG_REALM_PLUS_LEVEL(realm, LOG_CRIT), text, file, line, func,
|
log_assert(LOG_REALM_PLUS_LEVEL(realm, LOG_CRIT), text, file, line, func,
|
||||||
"Assertion '%s' failed at %s:%u, function %s(). Aborting.");
|
"Assertion '%s' failed at %s:%u, function %s(). Aborting.");
|
||||||
abort();
|
abort();
|
||||||
|
@ -850,7 +849,6 @@ _noreturn_ void log_assert_failed_unreachable_realm(
|
||||||
const char *file,
|
const char *file,
|
||||||
int line,
|
int line,
|
||||||
const char *func) {
|
const char *func) {
|
||||||
(void) log_open();
|
|
||||||
log_assert(LOG_REALM_PLUS_LEVEL(realm, LOG_CRIT), text, file, line, func,
|
log_assert(LOG_REALM_PLUS_LEVEL(realm, LOG_CRIT), text, file, line, func,
|
||||||
"Code should not be reached '%s' at %s:%u, function %s(). Aborting.");
|
"Code should not be reached '%s' at %s:%u, function %s(). Aborting.");
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in a new issue