Skip to content

fix: only use print statement for logging sample #2025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions functions/log/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@

# [END functions_log_stackdriver]

# [START functions_log_helloworld]
import logging

# [END functions_log_helloworld]

# [START functions_log_retrieve]
import os
# [END functions_log_retrieve]
Expand All @@ -40,7 +35,6 @@ def hello_world(data, context):
context (google.cloud.functions.Context): The event metadata.
"""
print('Hello, stdout!')
logging.warn('Hello, logging handler!')
# [END functions_log_helloworld]


Expand Down