Merge pull request #778 from Atala/set_sentry_transport

fix: set HTTP transport as default for sentry
main
Selwin Ong 8 years ago committed by GitHub
commit eaa350443c

@ -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