Fix rescue in EdgeCache::Bust (#13303)

We were trying to report an exception to Honeybadger but we never
actually captured the exception.
This commit is contained in:
Jamie Gaskins 2021-04-07 15:31:30 -04:00 committed by GitHub
parent a842247900
commit afa3178b79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ module EdgeCache
response = http.get(uri.request_uri)
return true if response.is_a?(Net::HTTPSuccess)
rescue StandardError
rescue StandardError => e
# If we can't connect to OpenResty, alert ourselves that it is
# unavailable and return false.
Rails.logger.error("Could not connect to OpenResty via #{ApplicationConfig['OPENRESTY_URL']}!")