buildkite / test-collector-ruby

Buildkite Test Analytics collector for Ruby test frameworks

Home Page:http://buildkite.com/test-analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update logging level to 'error'?

gchan opened this issue · comments

Buildkite::TestCollector.logger.warn("attempting disconnected flow")

Should the logging level be error to be consistent with the subsequent lines?

Buildkite::TestCollector.logger.error("attempting disconnected flow")
@session.disconnected(self)
disconnect
end
rescue IOError
# This is fine to ignore
Buildkite::TestCollector.logger.error("IOError")
rescue IndexError
# I don't like that we're doing this but I think it's the best of the options
#
# This relates to this issue https://github.com/ruby/openssl/issues/452
# A fix for it has been released but the repercussions of overriding
# the OpenSSL version in the stdlib seem worse than catching this error here.
Buildkite::TestCollector.logger.error("IndexError")
if @socket
Buildkite::TestCollector.logger.error("attempting disconnected flow")

Yup, good catch! Do you want to make a Pull Request?