Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the panic hook as method #8

Open
piegamesde opened this issue Jul 7, 2021 · 0 comments
Open

Expose the panic hook as method #8

piegamesde opened this issue Jul 7, 2021 · 0 comments

Comments

@piegamesde
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant