diff options
| author | Mike McQuaid | 2016-08-08 09:55:23 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-09 19:41:30 +0100 |
| commit | 222b73041583840f85b012cddb17b216a8a301d5 (patch) | |
| tree | 101d5945993774c415f767ca66bb28f6e2481082 /Library/Homebrew/utils/analytics.rb | |
| parent | 2b8ea07979da10a5edba2620a86d8111c9d2fee6 (diff) | |
| download | brew-222b73041583840f85b012cddb17b216a8a301d5.tar.bz2 | |
analytics.*: output curl command in debug mode.
Diffstat (limited to 'Library/Homebrew/utils/analytics.rb')
| -rw-r--r-- | Library/Homebrew/utils/analytics.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index 10cf2affa..087c69540 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -31,9 +31,9 @@ module Utils # https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide # https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters if ENV["HOMEBREW_ANALYTICS_DEBUG"] - puts Utils.popen_read ENV["HOMEBREW_CURL"], - "https://www.google-analytics.com/debug/collect", - *args + url = "https://www.google-analytics.com/debug/collect" + puts "#{ENV["HOMEBREW_CURL"]} #{url} #{args.join(" ")}" + puts Utils.popen_read ENV["HOMEBREW_CURL"], url, *args else pid = fork do exec ENV["HOMEBREW_CURL"], |
