Req #81501 [NEW]: Log request information in slowlog
| From: | wedwards at cyberfusion dot nl | Date: | Mon, 04 Oct 2021 13:46:00 +0000 |
| Subject: | Req #81501 [NEW]: Log request information in slowlog | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-237015@lists.php.net to get a copy of this message | ||
From: wedwards at cyberfusion dot nl
Operating system: Debian 10
PHP version: 7.4.24
Package: FPM related
Bug Type: Feature/Change Request
Bug description:Log request information in slowlog
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=81501&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81501&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81501&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81501&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81501&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81501&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81501&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81501&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81501&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81501&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81501&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81501&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81501&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81501&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81501&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81501&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81501&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81501&r=mysqlcfg