From 8fb6f5604a28fe415e5920d3c837a4d27aedf4b6 Mon Sep 17 00:00:00 2001 From: ctcjab Date: Wed, 27 Nov 2024 11:11:35 -0500 Subject: [PATCH] Backport PR #1119: Downgrade spurious 'error' logs --- 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, )