Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade spurious 'error' logs #1119

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
dlqqq marked this conversation as resolved.
Show resolved Hide resolved
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
Loading