Skip to content

Commit

Permalink
Fix deprecation warning (#1801)
Browse files Browse the repository at this point in the history
logging.warn -> logging.warning to fix "DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead"
  • Loading branch information
andrewsg authored and engelke committed Nov 20, 2018
1 parent cdab25b commit 981737e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logging/cloud-client/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 981737e

Please sign in to comment.