fix: set HTTP transport as default for sentry

main
Atala 8 years ago
parent 4fc032bfbf
commit 544f985d41

@ -199,8 +199,9 @@ def worker(url, config, burst, name, worker_class, job_class, queue_class, conne
# Should we configure Sentry? # Should we configure Sentry?
if sentry_dsn: if sentry_dsn:
from raven import Client from raven import Client
from raven.transport.http import HTTPTransport
from rq.contrib.sentry import register_sentry from rq.contrib.sentry import register_sentry
client = Client(sentry_dsn) client = Client(sentry_dsn, transport=HTTPTransport)
register_sentry(client, w) register_sentry(client, w)
w.work(burst=burst) w.work(burst=burst)

Loading…
Cancel
Save