Change record status: 
Project: 
Introduced in branch: 
9.2.x
Introduced in version: 
9.2.0
Description: 

New static method Drupal\Core\Database\Log::removeDatabaseEntries(array $backtrace, string $driver_namespace).
The parameter $backtrace is the return value from the PHP function debug_backtrace().
The parameter $driver_namespace is the PHP namespace of the database driver.

Impacts: 
Module developers