Skip to content

Commit

Permalink
Fix deprecation warning [(#1801)](GoogleCloudPlatform/python-docs-sam…
Browse files Browse the repository at this point in the history
…ples#1801)

logging.warn -> logging.warning to fix "DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead"
  • Loading branch information
andrewsg authored and busunkim96 committed Oct 30, 2020
1 parent 12bf3da commit 5262931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/snippets/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def use_logging_handler():
text = 'Hello, world!'

# Emits the data using the standard logging module
logging.warn(text)
logging.warning(text)
# [END logging_handler_usage]

print('Logged: {}'.format(text))
Expand Down

0 comments on commit 5262931

Please sign in to comment.