From 28a19ee71782bffa5f850513fc1c2a5234686a49 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Wed, 8 Jul 2015 09:07:13 +0200 Subject: [PATCH] Remove warning that's now breaking since the Raven API changed --- rq/contrib/sentry.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/rq/contrib/sentry.py b/rq/contrib/sentry.py index a99134a..5608e63 100644 --- a/rq/contrib/sentry.py +++ b/rq/contrib/sentry.py @@ -1,24 +1,12 @@ # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) -import warnings def register_sentry(client, worker): """Given a Raven client and an RQ worker, registers exception handlers with the worker so exceptions are logged to Sentry. """ - def uses_supported_transport(url): - supported_transports = set(['sync+', 'requests+']) - return any(url.startswith(prefix) for prefix in supported_transports) - - if not any(uses_supported_transport(s) for s in client.servers): - msg = ('Sentry error delivery is known to be unreliable when not ' - 'delivered synchronously from RQ workers. You are encouraged ' - 'to change your DSN to use the sync+ or requests+ transport ' - 'prefix.') - warnings.warn(msg, UserWarning, stacklevel=2) - def send_to_sentry(job, *exc_info): client.captureException( exc_info=exc_info,