Skip to content

Commit

Permalink
Backport PR #1119: Downgrade spurious 'error' logs (#1124)
Browse files Browse the repository at this point in the history
Co-authored-by: ctcjab <[email protected]>
  • Loading branch information
meeseeksmachine and ctcjab authored Nov 27, 2024
1 parent fa1b5fd commit 9fd8b57
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/jupyter-ai-magics/jupyter_ai_magics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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,
)
Expand Down

0 comments on commit 9fd8b57

Please sign in to comment.