ExceptionLoggingSubscriber should not log HTTP 5XX errors using PHP logger channel

Created on 6 October 2023, 11 months ago

Problem/Motivation

Follow up from πŸ› ExceptionLoggingSubscriber should not log HTTP 4XX errors using PHP logger channel Needs work From @chi

+ 502 => 'php',

I know this issue is specifically about 4xx errors, but i'd like to point that 5xx errors shouldn't be always logged in PHP channel. For example I have a project where Drupal serves as a gateway to another site. So when the upstream site fails Drupal returns 502 exception. That's part of normal workflow and has nothing to do with PHP.

I think PHP channel should only be used for exceptions that got 500 status code in FinalExceptionSubscriber. That might need a separate issue.

Steps to reproduce

TBD

Proposed resolution

TBD

Remaining tasks

Determine if we don't want to log 5xx

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

πŸ› Bug report
Status

Active

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