Skip to content

Commit e99d194

Browse files
Merge branch 'googleapis:main' into 757-django-disallowed-host
2 parents 4675a4d + 31a7f69 commit e99d194

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
google-cloud-logging==3.6.0
22
google-cloud-bigquery==3.11.4
33
google-cloud-storage==2.10.0
4-
google-cloud-pubsub==2.18.2
4+
google-cloud-pubsub==2.18.3

samples/snippets/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ def write_entry(logger_name):
3838
logger.log_text("Hello, world!")
3939

4040
# Simple text log with severity.
41-
logger.log_text("Goodbye, world!", severity="ERROR")
41+
logger.log_text("Goodbye, world!", severity="WARNING")
4242

4343
# Struct log. The struct can be any JSON-serializable dictionary.
4444
logger.log_struct(
4545
{
4646
"name": "King Arthur",
4747
"quest": "Find the Holy Grail",
4848
"favorite_color": "Blue",
49-
}
49+
}, severity="INFO"
5050
)
5151

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

0 commit comments

Comments
 (0)