diff --git a/providers/google/src/airflow/providers/google/cloud/log/stackdriver_task_handler.py b/providers/google/src/airflow/providers/google/cloud/log/stackdriver_task_handler.py index e1d4c3e3e76a3..a03acf73846d8 100644 --- a/providers/google/src/airflow/providers/google/cloud/log/stackdriver_task_handler.py +++ b/providers/google/src/airflow/providers/google/cloud/log/stackdriver_task_handler.py @@ -25,7 +25,7 @@ from typing import TYPE_CHECKING from urllib.parse import urlencode -from airflow.exceptions import RemovedInAirflow3Warning +from airflow.exceptions import AirflowProviderDeprecationWarning from airflow.providers.google.cloud.utils.credentials_provider import get_credentials_and_project_id from airflow.providers.google.common.consts import CLIENT_INFO from airflow.providers.google.version_compat import AIRFLOW_V_3_0_PLUS @@ -106,7 +106,7 @@ def __init__( warnings.warn( "Param `name` is deprecated and will be removed in a future release. " "Please use `gcp_log_name` instead. ", - RemovedInAirflow3Warning, + AirflowProviderDeprecationWarning, stacklevel=2, ) gcp_log_name = str(name)