Remove @backtrac_string from context array

Created on 16 November 2023, 10 months ago

Problem/Motivation

Follow up from ✨ Display backtrace for logged throwables on log message details page Fixed

@xjm @alexpott Looking at core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php I do see one place where we could consider removing @backtrace_string from the context array: The ExceptionLoggingSubscriber::onClientError() method.

It's already removed in the ExceptionLoggingSubscriber::on403() method.

This would clean up the UI by removing the backtrace for miscellaneous 4xx errors (e.g. \Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException) logged by this mechanism, and would reduce storage size of dblog module going forward, for sites that have been getting lots of non-404/403 4xx errors.

Steps to reproduce

Proposed resolution

TBD

Remaining tasks

Determine if we should remove - IMPORTANT
Review
Review

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

NA

πŸ“Œ Task
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
Database LoggingΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡¦πŸ‡·Argentina @dagmar
Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024