PHP output buffering

Created on 18 March 2025, 4 months ago

Problem/Motivation

When the jsonlog module is set to log to stdout, the logs of some processes like the drupal cron are being buffered and then written to stdout in one line without making a newline for each entry, which cause some log parser to mark it as en error.

Steps to reproduce

Set jsonlog module to log to stdout
run drupal in a docker container with ngnix and php-fpm
run system-> cron of drupal
read docker logs of container

Proposed resolution

introduce the flush() method after writing each log entry
setting php and ngnix output buffer to 0 didnt help.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024