potiuk commented on a change in pull request #18012:
URL: https://github.com/apache/airflow/pull/18012#discussion_r702387630
##########
File path: airflow/utils/log/file_processor_handler.py
##########
@@ -54,6 +54,8 @@ def set_context(self, filename):
:param filename: filename in which the dag is located
"""
local_loc = self._init_file(filename)
+ if self.handler:
+ self.handler.close()
Review comment:
Nope. That would be wrong. The whole idea is that the main handler is
not closed, we should only close the underlying handler without actually
closing the main one.
--
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]