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 werkzeug logging at INFO by forcibly unsetting werkzeug log level #2383

Merged
merged 2 commits into from
Jun 25, 2019

Conversation

nfelt
Copy link
Contributor

@nfelt nfelt commented Jun 25, 2019

Fixes #2028

This adds a workaround to WerkzeugServer to ensure that werkzeug log messages continue to be subject to TensorBoard's overall log level setting (--verbosity). This basically papers over a change introduced in 0.15.0 (specifically pallets/werkzeug@4cf77d2) that causes Werkzeug to no longer take root logger configuration into account when setting its own logger level to INFO, and resulted in #2028 where werkzeug HTTP request logs were emitted without respecting the TB log level setting.

I also updated our workspace dep on Werkzeug to the latest version, 0.15.4.

Tested by running tensorboard built both with and without the workspace dep update (aka with both 0.11.15 and 0.15.4 werkzeug versions), and confirmed that no HTTP request logs are emitted to the console by default, but that they appear when passing --verbosity=0 (min log level INFO).

Copy link
Contributor

@wchargin wchargin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to have this fix—thanks!

@nfelt nfelt merged commit cde14ef into tensorflow:master Jun 25, 2019
@nfelt nfelt deleted the fix-werkzeug-logging branch June 25, 2019 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Werkzeug 0.15.0 causes TensorBoard to log HTTP requests at INFO
2 participants