mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Merge pull request #6375 from dannon/sentry_transport_fix
[18.05] Specify standard HTTPTransport for Sentry
This commit is contained in:
+1
-1
@@ -193,7 +193,7 @@ class UniverseApplication(config.ConfiguresGalaxyMixin):
|
||||
|
||||
def postfork_sentry_client():
|
||||
import raven
|
||||
self.sentry_client = raven.Client(self.config.sentry_dsn)
|
||||
self.sentry_client = raven.Client(self.config.sentry_dsn, transport=raven.transport.HTTPTransport)
|
||||
|
||||
self.application_stack.register_postfork_function(postfork_sentry_client)
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class SentryPlugin(ErrorPlugin):
|
||||
# if they've set a custom one, override.
|
||||
if self.custom_dsn:
|
||||
import raven
|
||||
self.sentry = raven.Client(self.custom_dsn)
|
||||
self.sentry = raven.Client(self.custom_dsn, transport=raven.transport.HTTPTransport)
|
||||
|
||||
def submit_report(self, dataset, job, tool, **kwargs):
|
||||
"""Submit the error report to sentry
|
||||
|
||||
Reference in New Issue
Block a user