Config Delete events are not being logged using the PSR Logger.

Created on 23 April 2025, 2 days ago

Problem/Motivation

During an investigation into why something was removed it was discovered that the ConfigPsrSubscriber class does not log configuration deletions.

Steps to reproduce

  1. After installing the module, enable the Default logging system at /admin/config/development/config_log.
  2. Delete some config.
  3. Confirm in the db log that the configuration deletion is not logged.

Need to confirm that the 4.x branch has the same issue.

Proposed resolution

Update the ConfigPsrSubscriber to use a new onConfigDelete() method that does not rely on a diff for logging since this line is returning an empty array in onConfigSave() for delete events:

$diff = DiffArray::diffAssocRecursive($config->get(), $config->getOriginal());

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada slydevil Halifax

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024