Questions tagged [log-messages]
Use it for questions about various types of logs in Drupal, including the ones shown in /admin/reports.
171 questions
1 vote
1 answer
206 views
The username used for a failed login attempt is not reported anymore
Just completed a migration of a site from Drupal 7 to 10, and it's gone pretty smoothly after quite a bit of preparation. One thing seems different in a frustrating way: In the prior site on Drupal7, ...
1 vote
0 answers
154 views
Why am I not able to log to rsyslog?
I am trying to use System Logging on a Drupal 9.5 site running on CentOS7. I have followed the guide from here: https://www.drupal.org/docs/8/core/modules/syslog/overview and have the following set up:...
0 votes
1 answer
304 views
How to catch the payload for bad POST requests with JSON:API?
When POSTing to JSON:API with invalid parameters, UnprocessableHttpEntityException is thrown. However, in the logs, this exception does not contain the invalid payload that caused the exception. How ...
4 votes
1 answer
2k views
How to properly log custom exceptions?
I'm trying to improve the code quality of my custom module by adding custom exceptions. Before, I was lazy and throwing \Exception everywhere, but I recently refactored all my code to use custom ...
3 votes
1 answer
117 views
Selective cancellation from Watchdog
Can I selectively DELETE rows from watchdog? I have annoying errors and warnings I'm slowly getting rid of, but I would like to keep the history of user actions (create, update and delete on content). ...
5 votes
1 answer
379 views
Extending contrib module filelog service class displays PSR implementation error
I wanted to override the logger.filelog service from filelog module to make use of my own parser. An error occurred through drush cim and drush cr when the new custom module that overrides the service ...
1 vote
1 answer
468 views
How to block the IP that requests excessive 404 page not found?
On my site often I see thousands of requests thats ends up 404 - page not found error. How can I block the IP that exceeds more than certain number of requests within a span of time from Drupal?
2 votes
1 answer
233 views
How can I capture Watchdog output during a functional test?
I have a functional test that is failing, and I think that there could be some useful information in the database log, but unfortunately the test suite only runs in containers on GitLab CI so I don't ...