class Airbrake::RemoteSettings
def fetch_config
def fetch_config uri = build_config_uri https = build_https(uri) req = Net::HTTP::Get.new(uri.request_uri) response = nil begin response = https.request(req) rescue StandardError => ex reason = "#{LOG_LABEL} HTTP error: #{ex}" logger.error(reason) return {} end unless response.code == HTTP_OK logger.error(response.body) return {} end json = nil begin json = JSON.parse(response.body) rescue JSON::ParserError => ex logger.error(ex) return {} end json end