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

Remove unnecessary logs of opensearchpy #182

Open
crystaldust opened this issue Apr 25, 2023 · 1 comment
Open

Remove unnecessary logs of opensearchpy #182

crystaldust opened this issue Apr 25, 2023 · 1 comment
Assignees

Comments

@crystaldust
Copy link
Collaborator

The opensearchpy library will print a line of log on each request like this:

[2023-04-25, 09:01:43 UTC] {base.py:270} INFO - POST https://dev-opensearch-node1:9200/gits/_delete_by_query [status:200 request:0.006s]

Which brings huge amount of useless text, consider turn off the logs by opensearchpy settings.

@crystaldust crystaldust self-assigned this Apr 25, 2023
@crystaldust
Copy link
Collaborator Author

Currently the opensearchpy package doesn't provide a direct way to turn it off, the only way is to get the global opensearchpy logger, and set a higher log level(higher than INFO), which is described in the issue [FEATURE] Option to turn off success logs(which is by default) #377

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

No branches or pull requests

1 participant