Skip to content

Commit

Permalink
Merge pull request #67 from bangpound/python-client-custom-vars-logging
Browse files Browse the repository at this point in the history
HTTP status codes should be a page scope custom variable.
  • Loading branch information
Matthieu Aubry committed May 6, 2013
2 parents eefc509 + cc46f41 commit 778b543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/log-analytics/import_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def _get_hit_args(self, hit):
args['_cvar'] = '{"1":["Not-Bot","%s"]}' % hit.user_agent
args['bots'] = '1'
if hit.is_error or hit.is_redirect:
args['_cvar'] = '{"2":["HTTP-code","%s"]}' % hit.status
args['cvar'] = '{"1":["HTTP-code","%s"]}' % hit.status
args['action_name'] = '%s/URL = %s%s' % (
hit.status,
urllib.quote(args['url'], ''),
Expand Down

0 comments on commit 778b543

Please sign in to comment.