Allow sentry to be verbose

This commit is contained in:
E Rasche
2017-08-10 17:53:00 +02:00
parent 437ab325da
commit 46b621708a
2 changed files with 7 additions and 1 deletions
@@ -65,3 +65,8 @@ Sentry
This refactors the existing on-failure submit-to-sentry behaviour into a bug
reporting plugin. Now, for example, you are able to disable the automatic
submission to sentry and only run that whenever the user reports it.
When ``verbose="true" user_submission="true"``, the plugin will inform the user
that ``Submitted bug report to Sentry. Your guru meditation number is
dc907d44ce294f78b267a56f68e5cd1a``, using the same phrasing that is common to
users from Galaxy internal server errors.
@@ -41,11 +41,12 @@ class SentryPlugin( ErrorSinkPlugin ):
if 'message' in kwargs:
extra['message'] = kwargs['message']
self.app.sentry_client.capture(
response = self.app.sentry_client.capture(
'raven.events.Message',
message="Galaxy Job Error: %s v.%s" % (job.tool_id, job.tool_version),
extra=extra,
)
return ( 'Submitted bug report to Sentry. Your guru meditation number is %s' % response, 'done' )
__all__ = ( 'SentryPlugin', )