uranusjr commented on code in PR #37927:
URL: https://github.com/apache/airflow/pull/37927#discussion_r1522286709
##########
tests/jobs/test_triggerer_job.py:
##########
@@ -51,6 +52,24 @@
pytestmark = pytest.mark.db_test
+class QueueListener_(logging.handlers.QueueListener):
+ def __init__(self, queue, *handlers, respect_handler_level):
+ no_console_handlers = []
+ for h in handlers:
+ if h.name != "console":
+ no_console_handlers.append(h)
Review Comment:
```suggestion
no_console_handlers = [h for h in handlers if h.name != "console"]
```
##########
tests/jobs/test_triggerer_job.py:
##########
@@ -51,6 +52,24 @@
pytestmark = pytest.mark.db_test
+class QueueListener_(logging.handlers.QueueListener):
+ def __init__(self, queue, *handlers, respect_handler_level):
+ no_console_handlers = []
+ for h in handlers:
+ if h.name != "console":
+ no_console_handlers.append(h)
Review Comment:
```suggestion
no_console_handlers = (h for h in handlers if h.name != "console")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]