From 5133b8d57cbd3c555cb5ec9d11b2a90f851b383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20W=C3=B3jcik?= Date: Mon, 4 Mar 2013 15:03:46 +0100 Subject: [PATCH 1/2] Fixed 'rec' param value when replay-tracking enabled --- misc/log-analytics/import_logs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index 07505721475..081b2f0e96b 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -1120,6 +1120,9 @@ def _get_hit_args(self, hit): 'dp': '0' if config.options.reverse_dns else '1', 'ua': hit.user_agent.encode('utf8'), } + if not hit.args.get('rec'): + # prevent request to be force recorded when option replay-tracking + args['rec'] = '0' args.update(hit.args) if hit.is_download: From fc205d288fec83e41ed910e74f305c36028c0577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20W=C3=B3jcik?= Date: Mon, 4 Mar 2013 15:48:46 +0100 Subject: [PATCH 2/2] Fixed if condition if optoions replay_tracking enabled. --- misc/log-analytics/import_logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index 081b2f0e96b..15748811557 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -1120,7 +1120,7 @@ def _get_hit_args(self, hit): 'dp': '0' if config.options.reverse_dns else '1', 'ua': hit.user_agent.encode('utf8'), } - if not hit.args.get('rec'): + if config.options.replay_tracking: # prevent request to be force recorded when option replay-tracking args['rec'] = '0' args.update(hit.args)