mirror of
https://github.com/sprockets/sprockets.mixins.metrics.git
synced 2024-11-21 19:28:34 +00:00
Move logging out of try catch
This commit is contained in:
parent
0fc46f82b4
commit
7b7010b0a2
1 changed files with 3 additions and 2 deletions
|
@ -163,9 +163,10 @@ class StatsDCollector(object):
|
|||
msg = '{0}:{1}|{2}'.format(
|
||||
self._build_path(path, metric_type), value, metric_type)
|
||||
|
||||
LOGGER.debug('Sending %s to %s:%s', msg.encode('ascii'),
|
||||
self._host, self._port)
|
||||
|
||||
try:
|
||||
LOGGER.debug('Sending %s to %s:%s', msg.encode('ascii'),
|
||||
self._host, self._port)
|
||||
if self._tcp:
|
||||
return self._sock.write(msg.encode('ascii'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue