lib/minke/docker/health_check.rb in minke-1.13.5 vs lib/minke/docker/health_check.rb in minke-1.13.6

- old
+ new

@@ -12,16 +12,16 @@ end ## # waits until a 200 response is received from the given url def wait_for_HTTPOK url - @logger.debug "Waiting for server #{url} to start #{@count} attempts left" + @logger.debug "Waiting for server #{url} to start #{@count} attempts remaining" begin response = RestClient.send('get', url) rescue - @logger.error 'Invalid response from server' + @logger.debug 'Invalid response from server' end check_response response, url end @@ -39,9 +39,10 @@ sleep @pause if @count > 0 wait_for_HTTPOK url else + @logger.error "Server: #{url} failed health check" raise 'Server failed to start' end end def check_success url