Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b51f1191 authored by Henri Chataing's avatar Henri Chataing Committed by Automerger Merge Worker
Browse files

Merge "system/log: [FLOSS] Call std::abort on fatal log messages" into main am: 48f0d0ca

parents f5971294 48f0d0ca
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -90,6 +90,12 @@ void vlog(Level level, char const* tag, source_location location,

  // Print to vsyslog.
  syslog(LOG_USER | severity, "%s", buffer.c_str());

  // abort if the message was fatal.
  // syslog does not independently abort on CRIT logs.
  if (level == Level::kFatal) {
    std::abort();
  }
}

}  // namespace bluetooth::log_internal