mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 13:51:41 +00:00
fix: evitar errores de serialización #12998
`que` falla silenciosamente cuando no puede serializar errores para enviar, que es la mayor parte de las veces. enviar los errores sincronicamente excepto los de airbrake
This commit is contained in:
parent
79f3958a06
commit
6c1dcf5ded
1 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,12 @@ module ExceptionNotifier
|
||||||
# @param [Exception]
|
# @param [Exception]
|
||||||
# @param [Hash]
|
# @param [Hash]
|
||||||
def call(exception, **options)
|
def call(exception, **options)
|
||||||
GitlabNotifierJob.perform_async(exception, **options)
|
case exception
|
||||||
|
when BacktraceJob::BacktraceException
|
||||||
|
GitlabNotifierJob.perform_later(exception, **options)
|
||||||
|
else
|
||||||
|
GitlabNotifierJob.perform_now(exception, **options)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue