Change record status: 
Project: 
Introduced in branch: 
10.2.x
Introduced in version: 
10.2.0
Description: 

Certain logging mechanisms in Drupal core, such as \Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber::onError() and \Drupal\Core\Utility\Error::logException(), add a @backtrace_string placeholder to the context array, but do not use this placeholder in the log message. As a result, Database Logging module previously did not display a backtrace for throwables logged by these mechanisms.

For any such cases where the @backtrace_string placeholder is present in the context array but is not used in the log message, Database Logging module now makes use of the placeholder to display the backtrace at the bottom of the event details page.

Impacts: 
Site builders, administrators, editors
Module developers