Skip to content

Demote WARN to INFO if behaviour is expected for connect. #1211

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

Merged
merged 2 commits into from
Apr 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/logstash/outputs/elasticsearch/http_client/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ def healthcheck!(register_phase = true)
raise root_bad_code_err if root_bad_code_err

# If no exception was raised it must have succeeded!
logger.warn("Restored connection to ES instance", url: url.sanitized.to_s)
if register_phase
logger.info("Connected to ES instance", url: url.sanitized.to_s)
else
logger.warn("Restored connection to ES instance", url: url.sanitized.to_s)
end

# We check its ES version
es_version, build_flavor = parse_es_version(root_response)
Expand Down