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

fix(logger): Disable conditionally start logging for Sphinx documenta… #2909

Merged
merged 4 commits into from
Apr 12, 2021
Merged

fix(logger): Disable conditionally start logging for Sphinx documenta… #2909

merged 4 commits into from
Apr 12, 2021

Conversation

ovaar
Copy link
Contributor

@ovaar ovaar commented Apr 9, 2021

Disable conditionally start logging for Sphinx documentation. Solves #2908

Fixes #2908.

Changes proposed in this pull request:

  • Swapped start_logging_on_import and running_in_test_or_tool so that the tools are evaluated before starting logging on import.
  • Added sphinx main to the list of tools.

Edit This is not really a proper fix for the issue that seems to be lying elsewhere but a work around that should enable users to build documentation in certain configurations.

…tion. Solves #2908

- Swapped `start_logging_on_import` and `running_in_test_or_tool` so that the tools are evaluated before starting logging on import.
- Added sphinx main to the list of tools.
@codecov
Copy link

codecov bot commented Apr 9, 2021

Codecov Report

Merging #2909 (b24778b) into master (a7d2125) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2909      +/-   ##
==========================================
- Coverage   65.31%   65.30%   -0.01%     
==========================================
  Files         208      208              
  Lines       28021    28021              
==========================================
- Hits        18302    18300       -2     
- Misses       9719     9721       +2     

@jenshnielsen jenshnielsen merged commit 4836de0 into microsoft:master Apr 12, 2021
@ovaar ovaar deleted the fix/disable-conditional-logging-for-sphinx branch April 12, 2021 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable logging on import for Sphinx documentation builds
2 participants