Skip to content

Commit 3ec0da7

Browse files
author
Ace Nassri
authored
chore(functions/log_helloworld): mention var_dump (GoogleCloudPlatform#1218)
1 parent 0aa1285 commit 3ec0da7

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)