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

Commit 48f0d0ca authored by Henri Chataing's avatar Henri Chataing Committed by Gerrit Code Review
Browse files

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

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


  // Print to vsyslog.
  // Print to vsyslog.
  syslog(LOG_USER | severity, "%s", buffer.c_str());
  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
}  // namespace bluetooth::log_internal