Skip to content

Commit 81422bd

Browse files
author
Ace Nassri
authored
Merge branch 'master' into functions-scopes
2 parents 017d854 + 3ec0da7 commit 81422bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

functions/log_helloworld/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ function helloLogging(ServerRequestInterface $request): string
3636

3737
// This doesn't log anything
3838
error_log('error_log does not log in Cloud Functions!');
39+
40+
// For HTTP functions, this is added to the HTTP response
41+
// For CloudEvent functions, this does nothing
42+
var_dump('var_dump goes to HTTP response for HTTP functions');
3943

4044
// Functions must return a String or PSR-7 Response object
4145
return '';

0 commit comments

Comments
 (0)