cms
cms copied to clipboard
[4.x]: Craft should log errors when CRAFT_STREAM_LOG is true
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
- Run Craft in an environment with
CRAFT_STREAM_LOG=trueset. - Get Craft to produce an error.
- 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