1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

log: reenable abort

abort_on_internal_error got ignored with the new class logging commit.j
Put this check back in this return path, so the check is not skipped.
This commit is contained in:
Zdenek Kabelac 2013-03-28 13:33:20 +01:00
parent 5c93f3997b
commit 2edf488b38

View File

@ -346,11 +346,12 @@ void print_log(int level, const char *file, int line, int dm_errno_or_class,
va_end(ap);
}
if (level > debug_level())
return;
if (level >= _LOG_DEBUG && !debug_class_is_logged(dm_errno_or_class))
if ((level > debug_level()) ||
(level >= _LOG_DEBUG && !debug_class_is_logged(dm_errno_or_class))) {
if (fatal_internal_error)
abort();
return;
}
if (_log_to_file && (_log_while_suspended || !critical_section())) {
fprintf(_log_file, "%s:%d %s%s", file, line, log_command_name(),