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 the size of toString() to a configurable limit #272

Merged
merged 1 commit into from
May 3, 2022

Conversation

swallez
Copy link
Member

@swallez swallez commented May 3, 2022

Follow-up to #269.

Elasticsearch API objects can be quite large. In order to avoid using too much memory when calling toString() on API objects (and filling up the logs if they end up there), the resulting string is limited, with a default limit of 10k characters. This limit can be changed globally.

@swallez swallez merged commit b7b0b20 into main May 3, 2022
@swallez swallez deleted the limit-to-string-size branch May 3, 2022 11:54
swallez added a commit that referenced this pull request May 3, 2022
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
swallez added a commit that referenced this pull request May 3, 2022
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant