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

limit number of warn logs #4472

Closed
wants to merge 2 commits into from
Closed

limit number of warn logs #4472

wants to merge 2 commits into from

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Jan 29, 2024

  • limit number of warn logs from doc processor to 20 per minute
  • limit same error log to 3 per minute

The limit is on the doc processor level and not shared currently

closes #4461

"{}",
error
);
let error_str = error.to_string();
Copy link
Contributor

Choose a reason for hiding this comment

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

keying the hashmap on the string representation of the error is not a great idea. What if the error display name contains something dynamic? (like a docid or something)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then we would still have the 20 logs limit per minute

@fulmicoton
Copy link
Contributor

closing for #4483

@fulmicoton fulmicoton closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

malformed documents log too much
2 participants