This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 2a791feb1d Remove hard-coded logger in tests (#43160)
2a791feb1d is described below
commit 2a791feb1d4e69cd8cb26c5405e0d75828d82cdc
Author: Kaxil Naik <[email protected]>
AuthorDate: Fri Oct 18 16:58:49 2024 +0100
Remove hard-coded logger in tests (#43160)
The change itself should be ok but on checking other patterns from the
codebase, I am changing it to using the logger from the sensor
---
providers/tests/apache/hdfs/sensors/test_web_hdfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/providers/tests/apache/hdfs/sensors/test_web_hdfs.py
b/providers/tests/apache/hdfs/sensors/test_web_hdfs.py
index 41ccb88e28..cc2db04070 100644
--- a/providers/tests/apache/hdfs/sensors/test_web_hdfs.py
+++ b/providers/tests/apache/hdfs/sensors/test_web_hdfs.py
@@ -72,7 +72,7 @@ class TestMultipleFilesWebHdfsSensor:
expected_filenames=TEST_HDFS_FILENAMES,
)
- with caplog.at_level("DEBUG", logger="airflow.task"):
+ with caplog.at_level("DEBUG", logger=sensor.log.name):
result = sensor.poke(dict())
assert result