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

Only log successful ES queries if they took more than a certain amount of time #1314

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

andersju
Copy link
Member

@andersju andersju commented Oct 4, 2023

Currently the API whelk log in production has few million lines like this every day:

INFO whelk.component.ElasticSearch - ES query took 48 (46 server-side)

This is a) not particularly useful and b) makes it more annoying to find other things in the log. Let's write a log entry only if the query exceeded a certain amount of time.

Copy link
Member

@niklasl niklasl left a comment

Choose a reason for hiding this comment

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

💯 🚢

Copy link
Contributor

@kwahlin kwahlin left a comment

Choose a reason for hiding this comment

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

🚢

@andersju andersju merged commit 4fa8b63 into develop Oct 5, 2023
1 check passed
@andersju andersju deleted the feature/dont-log-everything-es-query branch October 5, 2023 06:45
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.

3 participants