php / php/php-src

php-fpm decorate_workers_output = no removes timestamp

Open
#10,671 3 comments 3 reactions 1 assignee View on GitHub

@bukka is already working on this.

Since Feb 23, 2023.

Feature SAPI: fpm
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

The following code:

<?php
error_log('testing...');
  • Note: all output is to the error_log file

Resulted in this output:

[22-Feb-2023 21:06:21] WARNING: [pool www] child 21211 said into stderr: "NOTICE: PHP message: testing..."

So in my www.conf file, I set this:

decorate_workers_output = no

Which resulted in this output:

NOTICE: PHP message: testing...

But I expected this output instead:

[22-Feb-2023 21:06:21] NOTICE: PHP message: testing...

Is there a way to keep the timestamp, but remove the rest of the worker decoration?

PHP Version

PHP 7.4.33

Operating System

Ubuntu 18.04.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.