Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #109 from Osmose/count-fxos-workaround
Browse files Browse the repository at this point in the history
Count number of times the Firefox OS workaround in subscribe is used.
  • Loading branch information
pmac committed Sep 30, 2014
2 parents 97cbe33 + b2453ad commit ce2f960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions news/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

# Get error codes from basket-client so users see the same definitions
from basket import errors
from django_statsd.clients import statsd

from .backends.common import NewsletterNoResultsException
from .backends.exacttarget import (ExactTargetDataExt, NewsletterException,
Expand Down Expand Up @@ -512,6 +513,7 @@ def subscribe(request):
# Can't use QueryDict since the string is not url-encoded.
# It will convert '+' to ' ' for example.
data = dict(pair.split('=') for pair in raw_request.split('&'))
statsd.incr('subscribe-fxos-workaround')
else:
return HttpResponseJSON({
'status': 'error',
Expand Down

0 comments on commit ce2f960

Please sign in to comment.