-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud function logging error severity #1370
Comments
Hmm, this may be an issue with compatibility between Google Cloud Functions and our I'll look into it... |
I've reproduced the problem with the sample, it does not work because some change in the HTTP proxy server in the runtime was changed, and is now prefixing stderr messages with a string that breaks JSON parsing. Given the logging library uses a different mechanism to ship logs, I'm guessing we have at least two different problems. When I add cloud/logging to the sample, my local composer v3 is fine but I get the following error on deployment (before even reproducing the reported issue)
All right, let's run composer update!
Deploy fails the same way. @bshaffer do you have insight into this build problem? |
This issue is related to php-fpm. By default To make structured logs work on php runtimes, the value should be changed to |
any news about it ? |
I agree that |
@bshaffer Would you verify if this has been resolved? |
The bug above was marked as fixed on April 10th of this year. I have not verified it's been fixed yet. |
I've run into trouble logging with error severity using cloud functions. Spinning up the example from documentation does not work (logs are displayed with default severity), nor does specifying a severity while using the google/cloud-logging package via composer.
Attached is a screenshot of log output while using the example code from https://github.com/GoogleCloudPlatform/php-docs-samples/blob/HEAD/functions/helloworld_log/index.php
The text was updated successfully, but these errors were encountered: