Jason
Jason

Reputation: 911

500 errors not reported as log level error when using php73

With php72 or php73 the 500 error response codes are no longer identified in Google Cloud logging with the red log level "Error"

How can I resolve this?

enter image description here

I suspect it is related to this change in php7:

The entrypoint field uses the built-in serve command, which is a program within the PHP 7 runtime that starts up the php-fpm implementation and a webserver in the background. This webserver routes all traffic to the provided PHP file using the front controller design pattern https://cloud.google.com/appengine/docs/standard/php7/runtime#application_startup

I'm using App Engine standard with this app.yaml

runtime: php73
entrypoint: serve controller.php

Upvotes: 0

Views: 114

Answers (1)

Puteri
Puteri

Reputation: 3789

I think it could be a bug. I tried to run a PHP7 app on App Engine to make it crash and I was able to see in Stackdriver the same issue as you, something that doesn't happen on PHP5. You could check any progress for that issue to get resolved here.

Upvotes: 1

Related Questions