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

Commit a2bd84e7 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...

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

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/3052302



Change-Id: Ia73270f4c7b1b2f58b6adb020169c9c94f69f50f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7aff606e b51f1191
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