analytics.*: output curl command in debug mode.
This commit is contained in:
parent
2b8ea07979
commit
222b730415
@ -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"],
|
||||
|
||||
@ -113,6 +113,8 @@ report-analytics-screenview-command() {
|
||||
"${args[@]}" \
|
||||
--silent --output /dev/null &>/dev/null & disown
|
||||
else
|
||||
echo "$HOMEBREW_CURL https://www.google-analytics.com/debug/collect" \
|
||||
"${args[@]}"
|
||||
"$HOMEBREW_CURL" https://www.google-analytics.com/debug/collect \
|
||||
"${args[@]}"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user