Skip to content

Commit 981737e

Browse files
andrewsgengelke
authored andcommitted
Fix deprecation warning (#1801)
logging.warn -> logging.warning to fix "DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead"
1 parent cdab25b commit 981737e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging/cloud-client/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def use_logging_handler():
3636
text = 'Hello, world!'
3737

3838
# Emits the data using the standard logging module
39-
logging.warn(text)
39+
logging.warning(text)
4040
# [END logging_handler_usage]
4141

4242
print('Logged: {}'.format(text))

0 commit comments

Comments
 (0)