From 981737e85f60eca5cc337f172249deddca9b291b Mon Sep 17 00:00:00 2001 From: Andrew Gorcester Date: Tue, 20 Nov 2018 12:57:25 -0800 Subject: [PATCH] Fix deprecation warning (#1801) logging.warn -> logging.warning to fix "DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead" --- logging/cloud-client/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/cloud-client/handler.py b/logging/cloud-client/handler.py index 9986eab8593e..7b4e50f217a3 100644 --- a/logging/cloud-client/handler.py +++ b/logging/cloud-client/handler.py @@ -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))