Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor root logger handling in task run #12342

Merged
merged 2 commits into from
Nov 14, 2020

Conversation

mjpieters
Copy link
Contributor

  • Use a context manager to encapsulate task logging setup and teardown
  • Create a copy, not a reference, of the handlers list
  • Remove logging.shutdown(), it simply should not be called

Closes #12090

- Use a context manager to encapsulate task logging setup and teardown
- Create a copy, not a reference, of the handlers list
- Remove logging.shutdown(), it simply should not be called
@kaxil
Copy link
Member

kaxil commented Nov 13, 2020

Thanks :) -- You beat me to it

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Nov 13, 2020
@github-actions
Copy link

The PR should be OK to be merged with just subset of tests as it does not modify Core of Airflow. The committers might merge it or can add a label 'full tests needed' and re-run it to run all tests if they see it is needed!

@kaxil kaxil merged commit 4c25e76 into apache:master Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:CLI okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

task_command.task_run log handling is either broken or redundant
2 participants