this generates just too much data

This commit is contained in:
Andy McKay 2013-04-18 11:11:11 -07:00
Родитель 1a5fe98555
Коммит f7ea92d783
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -15,7 +15,6 @@ import logging
from django.dispatch.dispatcher import Signal, _make_id
from django.conf import settings
from django_statsd.clients import statsd
log = logging.getLogger('signals')
@ -31,8 +30,7 @@ def safe_send(self, sender, **named):
# Return a list of tuple pairs [(receiver, response), ... ].
for receiver in self._live_receivers(_make_id(sender)):
try:
with statsd.timer('signal.send'):
response = receiver(signal=self, sender=sender, **named)
response = receiver(signal=self, sender=sender, **named)
except Exception, err:
if do_raise:
raise