This is an automated email from the ASF dual-hosted git repository.

amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new d1c99f80e59 Prevent  from being added to root logger by default 
(#46236)
d1c99f80e59 is described below

commit d1c99f80e59b52cd347dc5f6b156e4be7b4f30a9
Author: Amogh Desai <[email protected]>
AuthorDate: Thu Jan 30 00:10:30 2025 +0530

    Prevent  from being added to root logger by default (#46236)
---
 tests/jobs/test_triggerer_job_logging.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/jobs/test_triggerer_job_logging.py 
b/tests/jobs/test_triggerer_job_logging.py
index 5e6a8e3ac89..e156d6b0f33 100644
--- a/tests/jobs/test_triggerer_job_logging.py
+++ b/tests/jobs/test_triggerer_job_logging.py
@@ -209,7 +209,12 @@ fallback_task = {
             "s3_log_folder": "s3://abc",
         },
     },
-    "loggers": {"airflow.task": {"handlers": ["task"]}},
+    "loggers": {
+        "airflow.task": {"handlers": ["task"]},
+        "": {
+            "handlers": [],  # ensure no default handlers is added like 
RedirectStdHandler
+        },
+    },
 }
 
 

Reply via email to