mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Allow sentry to be verbose
This commit is contained in:
@@ -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', )
|
||||
|
||||
Reference in New Issue
Block a user