diff options
author | gibsondan <daniel@elementl.com> | 2021-10-25 10:17:01 -0500 |
---|---|---|
committer | gibsondan <daniel@elementl.com> | 2021-10-25 10:17:01 -0500 |
commit | b1c0d1f00eb4425a36b8bf9272173146e5abed3f (patch) | |
tree | cd72c593836b29833b3ee5d7f4b47a17dd8bc206 /doc/development/tutorials/examples/autodoc_intenum.py | |
parent | cf38356a088acc0052d6cbb50f04c3773ab690c4 (diff) | |
download | sphinx-git-b1c0d1f00eb4425a36b8bf9272173146e5abed3f.tar.gz |
Closes #9733: Fix for logging handler flushing warnings in the middle of the build
Summary:
My project was mysteriously dropping warnings (see https://github.com/sphinx-doc/sphinx/issues/9733 for detailed repro) and I realized that it's becaues it imports libraries like airflow or mlflow that set up loggers automatically when they are imported. This causes this handler to flush even though shouldFlush is set to always return False. A simple workaround is to override flush to be a no-op.
Test Plan: Repeat repro steps from #9733 - project now always includes warnings
Diffstat (limited to 'doc/development/tutorials/examples/autodoc_intenum.py')
0 files changed, 0 insertions, 0 deletions