From 9fd8b57b64d19f7ffc4e07f1ef3aa02e234c8c5b Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:06:24 -0800 Subject: [PATCH] Backport PR #1119: Downgrade spurious 'error' logs (#1124) Co-authored-by: ctcjab --- packages/jupyter-ai-magics/jupyter_ai_magics/utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py b/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py index 983bbf2d5..5fb8f4fee 100644 --- a/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py +++ b/packages/jupyter-ai-magics/jupyter_ai_magics/utils.py @@ -36,10 +36,9 @@ def get_lm_providers( ) continue except Exception as e: - log.error( - f"Unable to load model provider `{provider_ep.name}`. Printing full exception below." + log.warning( + f"Unable to load model provider `{provider_ep.name}`", exc_info=e ) - log.exception(e) continue if not is_provider_allowed(provider.id, restrictions): @@ -66,7 +65,7 @@ def get_em_providers( try: provider = model_provider_ep.load() except Exception as e: - log.error( + log.warning( f"Unable to load embeddings model provider class from entry point `{model_provider_ep.name}`: %s.", e, )