cms icon indicating copy to clipboard operation
cms copied to clipboard

[4.x]: Craft should log errors when CRAFT_STREAM_LOG is true

Open cpboyd opened this issue 4 months ago • 1 comments

What happened?

Description

I have set the CRAFT_STREAM_LOG=true in the environment running Craft.

I can see 499 errors being reported from the app/health-check endpoint, but no error message is shown in the log stream.

Steps to reproduce

  1. Run Craft in an environment with CRAFT_STREAM_LOG=true set.
  2. Get Craft to produce an error.
  3. The status code gets logged, but nothing else.

Expected behavior

Should be able to understand why health checks are failing.

Actual behavior

Undocumented status code is reported with no clear explanation of errors.

Craft CMS version

4.14.15

PHP version

8.2

Operating system and version

docker craft/image:8.2

Database type and version

Mysql

Image driver and version

imagick

Installed plugins and versions

cpboyd avatar Aug 06 '25 23:08 cpboyd