Replies: 1 comment
-
|
Unfortunately, as far as I can tell, that prefix is hard-coded directly in the source: https://github.com/php/php-src/blob/e97c0dc340be7387498b92b182b9356b960a3bd0/sapi/fpm/fpm/fpm_main.c#L631 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using docker image php:8.4-fpm with fpm pool setting as below:
when I tri to print error_log in php:
I see that php-fpm process added prefix to the log:
(Note: Setting
decorate_workers_output = nosuccessfully removes timestamps/FPM headers from stdout/stderr, but does not affect the specific prefix added by error_log() redirected to /proc/self/fd/2)Is there a specific PHP-FPM pool configuration directive, or perhaps a different approach (other than switching to
file_put_contents('php://stderr', ...)), that can completely suppress theNOTICE: PHP message:prefix whenerror_log()output is redirected to/proc/self/fd/2?Beta Was this translation helpful? Give feedback.
All reactions