- Issue created by @smokris
- Merge request !3Issue #3344061: Log a message when pruning a user account β (Open) created by smokris
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 4:45pm 23 February 2023
User Prune deletes user accounts during cron runs, without logging any watchdog messages. For auditing, it would be helpful to know when a user account was deleted, and why (automatically deleted by User Prune, or manually deleted by an administrator, or manually deleted by the user themself). The latter two manual actions already produce log messages. For consistency, it would be nice if User Prune could also log a corresponding message.
Add a \Drupal::logger
call in user_prune_cron
.
Review and merge https://git.drupalcode.org/project/user_prune/-/merge_requests/3 .
Log messages regarding user accounts deleted by User Prune will now appear in Admin > Reports > Recent log messages.
None.
None.
Needs review
1.0
Code