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

change log level on record ingestion failures #458

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jperez999
Copy link
Collaborator

@jperez999 jperez999 commented Feb 18, 2025

Description

This PR changes the log level for messages that inform the user that a given record failed ingestion because of missing data.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@jperez999 jperez999 added the feature request New feature or request label Feb 18, 2025
@jperez999 jperez999 self-assigned this Feb 18, 2025
@jperez999 jperez999 requested a review from a team as a code owner February 18, 2025 23:44
@jperez999 jperez999 requested review from edknv, randerzander, jdye64, drobison00 and ChrisJar and removed request for a team February 18, 2025 23:44
@@ -363,9 +363,9 @@ def _pull_text(element, enable_text: bool, enable_charts: bool, enable_tables: b
pg_num = element["metadata"]["content_metadata"]["page_number"]
doc_type = element["document_type"]
if not verify_emb:
logger.error(f"failed to find embedding for entity: {source_name} page: {pg_num} type: {doc_type}")
logger.info(f"failed to find embedding for entity: {source_name} page: {pg_num} type: {doc_type}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything that get's logged to info would (should) have been logged by error. Is this trying to solve for missing error information?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is so that we dont see the logs all the time. Currently in error they come up always. We got requests to make this less noisy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants