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

Set Bokeh logging to INFO #4916

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions panel/io/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ def post_check():
if newdoc is not doc:
raise RuntimeError(f"{handler._origin} at '{handler._runner.path}' replaced the output document")

# dask.distributed sets the logging level to error
logging.getLogger('bokeh').setLevel(logging.INFO)

try:
state._launching.append(doc)
with _monkeypatch_io(handler._loggers):
Expand Down
4 changes: 0 additions & 4 deletions panel/viewable.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,6 @@ def servable(
The Panel object itself
"""
if curdoc_locked().session_context:
logger = logging.getLogger('bokeh')
for handler in logger.handlers:
if isinstance(handler, logging.StreamHandler):
handler.setLevel(logging.WARN)
if config.template:
area = target or area or 'main'
template = state.template
Expand Down
Loading