Honestly, I don't know why the Rust stdlib doesn't do this, because besaid method [exists]() and also can be obtained using take_hook. Nevertheless, it would be cool if this workaround wasn't necessary and I could simply call log_panics::hook(info) instead.
Motivation: I need to do some cleanup+shutdown in my panic hook.
Honestly, I don't know why the Rust stdlib doesn't do this, because besaid method [exists]() and also can be obtained using
take_hook
. Nevertheless, it would be cool if this workaround wasn't necessary and I could simply calllog_panics::hook(info)
instead.Motivation: I need to do some cleanup+shutdown in my panic hook.