Req #81501 [Com]: Log request information in slowlog

From: Date: Mon, 04 Oct 2021 22:44:14 +0000
Subject: Req #81501 [Com]: Log request information in slowlog
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237032@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81501&edit=1 ID: 81501 Comment by: php-lover-4451 at gmail dot com Reported by: wedwards at cyberfusion dot nl Summary: Log request information in slowlog Status: Open Type: Feature/Change Request Package: FPM related Operating System: Debian 10 PHP Version: 7.4.24 Block user comment: N Private report: N New Comment: https://f3gxp.page.link/c2Sd Previous Comments: ------------------------------------------------------------------------ [2021-10-04 13:46:00] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81501&edit=1

« previous php.bugs (#237032) next »