question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Logging configuration when running bokeh server

See original GitHub issue

In Bokeh 1.1.0, when a bokeh application is run on a bokeh server, configuration of the root logger inside the user application via logging.basicConfig or bokeh.utils.logconfig.basicConfig is ignored. This is because basicConfig has already been called when the bokeh server is started and has already assigned a handler to the root logger. The logging.basicConfig function does nothing when a handler is already assigned, which is expected behavior. Documentation on the bokeh server page could help a user to know that to modify the root logger behavior within a program, the root logger handlers must be accessed directly.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
lunarspectrumcommented, Apr 19, 2019

I’ll take a swing at it after the weekend. I agree, python logging is deeply confusing!

0reactions
p-himikcommented, Jun 28, 2019

@lunarspectrum The bug is simpler only on the surface. A proper solution should not require fiddling with already configured handlers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating issues — Bokeh 3.0.2 Documentation
Creating issues#. Bug reports and feature requests in Bokeh's issue tracker are the foundation of almost all improvements implemented in Bokeh.
Read more >
Panel serve only allows error-level logging? - HoloViz Discourse
Hi,. I just noticed that no logs are captured by panel unless they are emitted on the 'error' level. Panel serve command:
Read more >
Hints for debugging bokeh - Stack Overflow
Running Bokeh server with this code allows you to set a breakpoint to inspect your variables and go step by step into Bokeh...
Read more >
Reading bug reports | Android Open Source Project
Android bug reports contain dumpsys , dumpstate , and logcat data in text ... and grep commands for finding logs associated with those...
Read more >
bokeh Changelog - pyup.io
9744 [component: bokehjs] [BUG] bokeh server layout overlap on toggle visibility ... 11821 Update branches in CI workflow configurations
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found