From d1dc70d56f51fcbd096eb5aff19301e10dca558d Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Sun, 5 Jun 2022 11:15:48 +0800 Subject: [PATCH] Typo --- airflow/providers/elasticsearch/log/es_task_handler.py | 2 +- airflow/utils/log/file_task_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/providers/elasticsearch/log/es_task_handler.py b/airflow/providers/elasticsearch/log/es_task_handler.py index 7a22a0af0d6c..f8311f7bde43 100644 --- a/airflow/providers/elasticsearch/log/es_task_handler.py +++ b/airflow/providers/elasticsearch/log/es_task_handler.py @@ -99,7 +99,7 @@ def __init__( if USE_PER_RUN_LOG_ID and log_id_template is not None: warnings.warn( - "Passing log_id_template to the log handler is deprecated and has not effect", + "Passing log_id_template to ElasticsearchTaskHandler is deprecated and has no effect", DeprecationWarning, ) diff --git a/airflow/utils/log/file_task_handler.py b/airflow/utils/log/file_task_handler.py index f81dd4cc4cd6..db34ea5f6b5b 100644 --- a/airflow/utils/log/file_task_handler.py +++ b/airflow/utils/log/file_task_handler.py @@ -52,7 +52,7 @@ def __init__(self, base_log_folder: str, filename_template: Optional[str] = None self.local_base = base_log_folder if filename_template is not None: warnings.warn( - "Passing filename_template to FileTaskHandler is deprecated and has not effect", + "Passing filename_template to FileTaskHandler is deprecated and has no effect", DeprecationWarning, )