|
|
|
|
|
by silly-silly
1880 days ago
|
|
I use this callback to capture the 'data' that caused the crash, so that it can be used to recover later or better understand why the crash happened. If I have as significantly long transaction, I can restart the transaction from transaction_id + 1 forward and then handle the actual transaction out of band by hand if its something very odd. I usually insert a logger in these code paths too, but the crash handler is usually after the logger, which makes it easier to reason what has happened if you are dealing with mutable state. |
|