Skip to content

Commit db751a5

Browse files
authored
fix: update message reflecting functionality of error_log (#1936)
* fix: update message reflecting functionality of error_log * fix: clarify
1 parent 1625b80 commit db751a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/helloworld_log/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function helloLogging(ServerRequestInterface $request): string
3434
'severity' => 'error'
3535
]) . PHP_EOL);
3636

37-
// This doesn't log anything
38-
error_log('error_log does not log in Cloud Functions!');
37+
// This will log to standard error, which will appear in Cloud Logging
38+
error_log('error_log logs in Cloud Functions!');
3939

4040
// This will log an error message and immediately terminate the function execution
4141
// trigger_error('fatal errors are logged!');

0 commit comments

Comments
 (0)