From 2990c1575353903b186d647a3eaa421fdd36088a Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 14 May 2024 10:08:01 +0000 Subject: [PATCH 1/3] only suppress bokeh warnings not everything --- bencher/bench_plot_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bencher/bench_plot_server.py b/bencher/bench_plot_server.py index 4aab3b0d..26e0fda5 100644 --- a/bencher/bench_plot_server.py +++ b/bencher/bench_plot_server.py @@ -87,6 +87,10 @@ def serve( port (int): use a fixed port to lauch the server """ + for l in ["tornado", "bokeh"]: + lg = logging.getLogger(l) + lg.setLevel(logging.WARNING) + if port is not None: return pn.serve( plots_instance, @@ -97,5 +101,4 @@ def serve( show=show, ) - logging.getLogger().setLevel(logging.WARNING) return pn.serve(plots_instance, title=bench_name, threaded=True, show=show) From c557c0c607763f61403ad8198c4fc5604c2de99e Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 14 May 2024 10:08:16 +0000 Subject: [PATCH 2/3] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a1f12090..5037c0f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "holobench" -version = "1.16.0" +version = "1.17.0" authors = [{ name = "Austin Gregg-Smith", email = "blooop@gmail.com" }] description = "A package for benchmarking the performance of arbitrary functions" From 3e4658f00f1d2884f6d9924977ab952167497228 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Tue, 14 May 2024 10:09:24 +0000 Subject: [PATCH 3/3] add comment --- bencher/bench_plot_server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bencher/bench_plot_server.py b/bencher/bench_plot_server.py index 26e0fda5..55b63e05 100644 --- a/bencher/bench_plot_server.py +++ b/bencher/bench_plot_server.py @@ -87,9 +87,9 @@ def serve( port (int): use a fixed port to lauch the server """ - for l in ["tornado", "bokeh"]: - lg = logging.getLogger(l) - lg.setLevel(logging.WARNING) + # suppress verbose tornado and bokeh output + for logger in ["tornado", "bokeh"]: + logging.getLogger(logger).setLevel(logging.WARNING) if port is not None: return pn.serve(