lib/cc/cli/version_checker.rb in codeclimate-0.69.0 vs lib/cc/cli/version_checker.rb in codeclimate-0.70.0
- old
+ new
@@ -14,11 +14,11 @@
print_new_version_message if outdated?
global_config.save
rescue => error
- CLI.debug(error)
+ CLI.logger.debug(error)
end
private
def version_check_is_due?
@@ -40,11 +40,11 @@
def api_response
@api_response ||=
begin
cache! JSON.parse(api_response_body)
rescue JSON::ParserError => error
- CLI.debug(error)
+ CLI.logger.debug(error)
{
"outdated" => false,
}
end
end
@@ -54,10 +54,10 @@
http_response.body
else
raise Net::HTTPFatalError.new("HTTP Error", http_response)
end
rescue Net::HTTPFatalError => error
- CLI.debug(error)
+ CLI.logger.debug(error)
""
end
def http_response
@http_response ||=