Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
late import for the monolith client
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Mar 28, 2013
1 parent 93ee9bf commit bed82a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import commonware.log

from mkt.monolith import record_stat
from monolith.client import Client as MonolithClient


log = commonware.log.getLogger('z.metrics')
Expand Down Expand Up @@ -105,6 +104,7 @@ def get_monolith_client():
statsd = {'statsd.host': getattr(settings, 'STATSD_HOST', 'localhost'),
'statsd.port': getattr(settings, 'STATSD_PORT', 8125)}

from monolith.client import Client as MonolithClient
_locals.monolith = MonolithClient(server, **statsd)

return _locals.monolith

0 comments on commit bed82a5

Please sign in to comment.