potiuk commented on pull request #15743: URL: https://github.com/apache/airflow/pull/15743#issuecomment-840024859
Fantastic analysis @xinbinhuang ! Just a thought - maybe we could simply switch to directly capturing filedescriptors. This is what Pytest does. Depending on the flags it can capture: * directly FDs * sys.stderr/sys.sdtdout * tee-capture (captures sys/stderr and sys.stdout but writes it through to the original sys.* This is describe here: https://docs.pytest.org/en/6.2.x/capture.html#setting-capturing-methods-or-disabling-capturing And code is here: https://github.com/pytest-dev/pytest/blob/main/src/_pytest/capture.py#L253 Maybe that could be an inspiration and we find a better way ? -- 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. For queries about this service, please contact Infrastructure at: [email protected]
