Skip to content

Commit 2a791fe

Browse files
authored
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
1 parent 6ad4288 commit 2a791fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/tests/apache/hdfs/sensors/test_web_hdfs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_poke(self, mock_hook, caplog):
7272
expected_filenames=TEST_HDFS_FILENAMES,
7373
)
7474

75-
with caplog.at_level("DEBUG", logger="airflow.task"):
75+
with caplog.at_level("DEBUG", logger=sensor.log.name):
7676
result = sensor.poke(dict())
7777

7878
assert result

0 commit comments

Comments
 (0)