diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-06 08:05:42 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-06 08:05:42 +0400 |
commit | 03bff6db73721e9d7d843db586092bb4fee983d4 (patch) | |
tree | a13bdd9682451ce5b0a79955dda34868358d68d9 /misc | |
parent | 5ac1fd4bd3379e873787836801a13fc920995456 (diff) |
Revert this change
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/log-analytics/import_logs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index df9390bab4..f2483cc509 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -808,7 +808,7 @@ class Piwik(object): try: return json.loads(res) except ValueError: - truncate_after = 3000 + truncate_after = 300 raise urllib2.URLError('Piwik returned an invalid response: ' + res[:truncate_after]) @@ -825,7 +825,7 @@ class Piwik(object): if on_failure is not None: error_message = on_failure(response, kwargs.get('data')) else: - truncate_after = 2000 + truncate_after = 300 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 |