php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81501 Log request information in slowlog
Submitted: 2021-10-04 13:46 UTC Modified: -
From: wedwards at cyberfusion dot nl Assigned:
Status: Open Package: FPM related
PHP Version: 7.4.24 OS: Debian 10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-10-04 13:46 UTC] wedwards at cyberfusion dot nl
Description:
------------
When slowlog is enabled, and PHP-FPM announces it's going to log to the slowlog, some request information is written to the log message: proc.request_method, proc.request_uri, and proc.query_string. Code: https://github.com/php/php-src/blob/5b01c4863fe9e4bc2702b2bbf66d292d23001a18/sapi/fpm/fpm/fpm_request.c#L263

However, this information is not logged to the slowlog itself: https://github.com/php/php-src/blob/5b01c4863fe9e4bc2702b2bbf66d292d23001a18/sapi/fpm/fpm/fpm_php_trace.c#L52 . It would be very useful to log the request information to the slowlog as well, as it'd make debugging requests that were proxied to PHP-FPM easier.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Nov 27 14:03:20 2021 UTC