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.
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(),