Skip to content

Commit

Permalink
bug 783340 - changed raw statsd to use django-statsd (which can be ba…
Browse files Browse the repository at this point in the history
…cked by metlog)
  • Loading branch information
crankycoder committed Sep 12, 2012
1 parent a62e1b4 commit 41f892d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/geoip/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import logging
import socket
from statsd import statsd
from django_statsd.clients import statsd

from mkt import regions

Expand Down
2 changes: 1 addition & 1 deletion mkt/inapp_pay/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from django.conf import settings

import jwt
from statsd import statsd
from django_statsd.clients import statsd

import amo
from market.models import Price
Expand Down
2 changes: 1 addition & 1 deletion services/pfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
setup_environ(settings)

# This has to be imported after the settings so statsd knows where to log to.
from statsd import statsd
from django_statsd.clients import statsd

# Go configure the log.
log_configure()
Expand Down
2 changes: 1 addition & 1 deletion services/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import settings_local as settings
setup_environ(settings)
# This has to be imported after the settings so statsd knows where to log to.
from statsd import statsd
from django_statsd.clients import statsd

try:
from compare import version_int
Expand Down
2 changes: 1 addition & 1 deletion services/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# This has to be imported after the settings (utils).
import receipts # used for patching in the tests
from receipts import certs
from statsd import statsd
from django_statsd.clients import statsd


class VerificationError(Exception):
Expand Down

2 comments on commit 41f892d

@andymckay
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if the services will still work with this services are run as seperate wsgi scripts and may not have the full settings treatment. We should check these out on -dev.

r+wc

@andymckay
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.