Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-06 07:22:22 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-06 07:22:22 +0400
commita07631b3205889451124192f04aaf81fd447236e (patch)
tree69a77d212b79fbfea84db64fdbbc55394d5210d3 /misc
parent0a88a60905a4e0b22ed9f5168b6edc9dafeb23cf (diff)
Fix Tracker variable was not set properly
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/log-analytics/import_logs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index 944795bbc6..df9390bab4 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -808,7 +808,8 @@ class Piwik(object):
try:
return json.loads(res)
except ValueError:
- raise urllib2.URLError('Piwik returned an invalid response: ' + res[:300])
+ truncate_after = 3000
+ raise urllib2.URLError('Piwik returned an invalid response: ' + res[:truncate_after])
@staticmethod
@@ -824,7 +825,7 @@ class Piwik(object):
if on_failure is not None:
error_message = on_failure(response, kwargs.get('data'))
else:
- truncate_after = 200
+ truncate_after = 2000
truncated_response = (response[:truncate_after] + '..') if len(response) > truncate_after else response
error_message = "didn't receive the expected response. Response was %s " % truncated_response