We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1625b80 commit db751a5Copy full SHA for db751a5
functions/helloworld_log/index.php
@@ -34,8 +34,8 @@ function helloLogging(ServerRequestInterface $request): string
34
'severity' => 'error'
35
]) . PHP_EOL);
36
37
- // This doesn't log anything
38
- error_log('error_log does not log in Cloud Functions!');
+ // This will log to standard error, which will appear in Cloud Logging
+ error_log('error_log logs in Cloud Functions!');
39
40
// This will log an error message and immediately terminate the function execution
41
// trigger_error('fatal errors are logged!');
0 commit comments