From 506aaf68cafa5e4d5dbccea9dedda2dae7c94484 Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Tue, 16 Aug 2022 10:35:57 +0100 Subject: [PATCH] fix(metrics): log ex as debug for jupyter notebook (#204) so apparently in jupyter notebooks this will actually throw unlike in a regular python environment. changing severity to debug since no one should ever care except me when i'm debugging lol! --- specklepy/logging/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specklepy/logging/metrics.py b/specklepy/logging/metrics.py index e11b102..44a1b90 100644 --- a/specklepy/logging/metrics.py +++ b/specklepy/logging/metrics.py @@ -79,7 +79,7 @@ def track(action: str, account: "Account" = None, custom_props: dict = None): METRICS_TRACKER.queue.put_nowait(event_params) except Exception as ex: # wrapping this whole thing in a try except as we never want a failure here to annoy users! - LOG.error(f"Error queueing metrics request: {str(ex)}") + LOG.debug(f"Error queueing metrics request: {str(ex)}") def initialise_tracker(account: "Account" = None):