diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2020-11-04 11:59:12 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2020-12-02 16:56:00 +0100 |
commit | 5eed4b01152de76a914d57908ed0b084df433896 (patch) | |
tree | 14aacfeaf5de3b4bf0a69daf84a97e0c33449ac9 /nonprism/openshot/neuter_tracking.patch | |
parent | 44b8ddb2ee78cc809212eaac4a6c06defe589db9 (diff) | |
download | abslibre-5eed4b01152de76a914d57908ed0b084df433896.tar.gz abslibre-5eed4b01152de76a914d57908ed0b084df433896.tar.bz2 abslibre-5eed4b01152de76a914d57908ed0b084df433896.zip |
nonprism/openshot: updated to 2.5.1
Diffstat (limited to 'nonprism/openshot/neuter_tracking.patch')
-rw-r--r-- | nonprism/openshot/neuter_tracking.patch | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/nonprism/openshot/neuter_tracking.patch b/nonprism/openshot/neuter_tracking.patch index 27c455f6c..a664c1573 100644 --- a/nonprism/openshot/neuter_tracking.patch +++ b/nonprism/openshot/neuter_tracking.patch @@ -1,30 +1,32 @@ --- a/src/classes/metrics.py 2018-09-22 18:49:41.000000000 -0300 +++ b/src/classes/metrics.py 2019-02-08 08:53:21.561261422 -0400 -@@ -152,10 +152,10 @@ - url_params = urllib.parse.urlencode(params) - url = "http://www.google-analytics.com/collect?%s" % url_params +@@ -163,10 +163,11 @@ def send_metric(params): + url_params = urllib.parse.urlencode(metric_params) + url = "http://www.google-analytics.com/collect?%s" % url_params -- # Send metric HTTP data -+ # Don't Send metric HTTP data - try: -- r = requests.get(url, headers={"user-agent": user_agent}, verify=False) -- log.info("Track metric: [%s] %s | (%s bytes)" % (r.status_code, r.url, len(r.content))) -+ # r = requests.get(url, headers={"user-agent": user_agent}, verify=False) -+ log.info("Track disabled - nonprism!") +- # Send metric HTTP data ++ # Send metric HTTP data (disabled) + try: +- r = requests.get(url, headers={"user-agent": user_agent}, verify=False) +- log.info("Track metric: [%s] %s | (%s bytes)" % (r.status_code, r.url, len(r.content))) ++ # r = requests.get(url, headers={"user-agent": user_agent}, verify=False) ++ # log.info("Track metric: [%s] %s | (%s bytes)" % (r.status_code, r.url, len(r.content))) ++ log.info("Tracking disabled") - except Exception as Ex: - log.error("Failed to Track metric: %s" % (Ex)) -@@ -172,10 +172,10 @@ - "unique_install_id": s.get("unique_install_id" )}) + except Exception as Ex: + log.error("Failed to Track metric: %s" % (Ex)) +@@ -191,10 +192,11 @@ def send_exception(stacktrace, source): + "unique_install_id": s.get("unique_install_id")}) url = "http://www.openshot.org/exception/json/" - # Send exception HTTP data -+ # Don't Send exception HTTP data ++ # Send exception HTTP data (disabled) try: - r = requests.post(url, data=data, headers={"user-agent": user_agent, "content-type": "application/x-www-form-urlencoded"}, verify=False) - log.info("Track exception: [%s] %s | %s" % (r.status_code, r.url, r.text)) + # r = requests.post(url, data=data, headers={"user-agent": user_agent, "content-type": "application/x-www-form-urlencoded"}, verify=False) -+ log.info("Tracking disabled - nonprism!") ++ # log.info("Track exception: [%s] %s | %s" % (r.status_code, r.url, r.text)) ++ log.info("Tracking disabled") except Exception as Ex: log.error("Failed to Track exception: %s" % (Ex)) |