Skip to content

Commit

Permalink
Merge branch 'googleapis:main' into 757-django-disallowed-host
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwtbuxton committed Sep 15, 2023
2 parents 4675a4d + 31a7f69 commit e99d194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
@@ -1,4 +1,4 @@
google-cloud-logging==3.6.0
google-cloud-bigquery==3.11.4
google-cloud-storage==2.10.0
google-cloud-pubsub==2.18.2
google-cloud-pubsub==2.18.3
4 changes: 2 additions & 2 deletions samples/snippets/snippets.py
Expand Up @@ -38,15 +38,15 @@ def write_entry(logger_name):
logger.log_text("Hello, world!")

# Simple text log with severity.
logger.log_text("Goodbye, world!", severity="ERROR")
logger.log_text("Goodbye, world!", severity="WARNING")

# Struct log. The struct can be any JSON-serializable dictionary.
logger.log_struct(
{
"name": "King Arthur",
"quest": "Find the Holy Grail",
"favorite_color": "Blue",
}
}, severity="INFO"
)

print("Wrote logs to {}.".format(logger.name))
Expand Down

0 comments on commit e99d194

Please sign in to comment.