Skip to content

Commit

Permalink
make meta as :dead instead of :unlicensed
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsurprenant committed Nov 24, 2020
1 parent efc1c06 commit 49a6906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/elasticsearch/http_client/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def healthcheck!
end

alive = @license_checker.appropriate_license?(self, url)
meta[:state] = alive ? :alive : :unlicensed
meta[:state] = alive ? :alive : :dead
end
rescue HostUnreachableError, BadResponseCodeError => e
logger.warn("Attempted to resurrect connection to dead ES instance, but got an error.", url: url.sanitized.to_s, error_type: e.class, error: e.message)
Expand Down

0 comments on commit 49a6906

Please sign in to comment.