php / php/php-src

php-fpm decorate_workers_output = no removes timestamp

Offen
#10,671 3 Kommentare 3 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@bukka arbeitet bereits daran.

Seit 23.2.2023.

Feature SAPI: fpm
Vorherrschende Sprache
C
Sterne
40.4k
Forks
8.1k
Ø Merge
2 T. 13 Std.
Gemergte PRs (30 T.)
96

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.