diff --git a/samples/snippets/handler.py b/samples/snippets/handler.py index 9986eab85..7b4e50f21 100644 --- a/samples/snippets/handler.py +++ b/samples/snippets/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))