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 84eaada commit 1ac7d42Copy full SHA for 1ac7d42
functions/log/main.py
@@ -18,10 +18,6 @@
18
19
# [END functions_log_stackdriver]
20
21
-# [START functions_log_retrieve]
22
-import os
23
-# [END functions_log_retrieve]
24
-
25
# [START functions_log_retrieve]
26
import google.cloud.logging as cloud_logging
27
# [END functions_log_retrieve]
@@ -41,7 +37,7 @@ def hello_world(data, context):
41
37
42
38
cloud_client = cloud_logging.Client()
43
39
log_name = 'cloudfunctions.googleapis.com%2Fcloud-functions'
44
-cloud_logger = cloud_client.logger(log_name.format(os.getenv('GCP_PROJECT')))
40
+cloud_logger = cloud_client.logger(log_name)
45
46
47
def get_log_entries(request):
0 commit comments