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))