mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
feat: Save error backtrace for sync errors for better debugging (#1578)
Co-authored-by: Tony Vincent Yesudas <tony.yesudas@raisenow.com>
This commit is contained in:
parent
77def1db40
commit
9d217afb9f
3 changed files with 13 additions and 2 deletions
|
@ -34,6 +34,11 @@ class Sync < ApplicationRecord
|
|||
scope.set_context("sync", { id: id })
|
||||
end
|
||||
|
||||
update! status: :failed, error: error.message, last_ran_at: Time.current
|
||||
update!(
|
||||
status: :failed,
|
||||
error: error.message,
|
||||
error_backtrace: error.backtrace&.first(10),
|
||||
last_ran_at: Time.current
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue