diff options
author | Cyril Bonté <cyril.bonte@free.fr> | 2014-05-29 03:21:38 +0400 |
---|---|---|
committer | Cyril Bonté <cyril.bonte@free.fr> | 2014-06-06 23:30:26 +0400 |
commit | 17cd06959781d014e634ea8105a28989b201de5c (patch) | |
tree | b159217419ea186d21d624096a9c6765a688b903 /misc | |
parent | b4d4cd995e47d25915962abec2aa8428ec101efc (diff) |
compute data only if not in dry-run
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/log-analytics/import_logs.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index 223ae37624..2aad9a4668 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -1318,12 +1318,11 @@ class Recorder(object): """ Inserts several hits into Piwik. """ - data = { - 'token_auth': config.options.piwik_token_auth, - 'requests': [self._get_hit_args(hit) for hit in hits] - } - if not config.options.dry_run: + data = { + 'token_auth': config.options.piwik_token_auth, + 'requests': [self._get_hit_args(hit) for hit in hits] + } piwik.call( '/piwik.php', args={}, expected_content=None, |