From 5367f1b408bf3077044bd8f6aab5a8db7647c493 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 7 Jun 2017 16:34:54 +0100 Subject: analytics: remove unused analytics. We didn't end up using the `screenview` and `exception` analytics as much as expected so let's remove them and focus on stuff that's formula-specific. --- Library/Homebrew/brew.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Library/Homebrew/brew.rb') diff --git a/Library/Homebrew/brew.rb b/Library/Homebrew/brew.rb index 7222f7e87..22c60f207 100644 --- a/Library/Homebrew/brew.rb +++ b/Library/Homebrew/brew.rb @@ -134,17 +134,15 @@ rescue Interrupt $stderr.puts # seemingly a newline is typical exit 130 rescue BuildError => e - Utils::Analytics.report_exception(e) + Utils::Analytics.report_build_error(e) e.dump exit 1 rescue RuntimeError, SystemCallError => e - Utils::Analytics.report_exception(e) raise if e.message.empty? onoe e $stderr.puts e.backtrace if ARGV.debug? exit 1 rescue MethodDeprecatedError => e - Utils::Analytics.report_exception(e) onoe e if e.issues_url $stderr.puts "If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):" @@ -152,7 +150,6 @@ rescue MethodDeprecatedError => e end exit 1 rescue Exception => e - Utils::Analytics.report_exception(e) onoe e if internal_cmd && defined?(OS::ISSUES_URL) $stderr.puts "#{Tty.bold}Please report this bug:#{Tty.reset}" -- cgit v1.2.3