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

feat: InjectorOpts.HookBeforePanic #64

Open
dezren39 opened this issue Mar 2, 2024 · 2 comments
Open

feat: InjectorOpts.HookBeforePanic #64

dezren39 opened this issue Mar 2, 2024 · 2 comments
Milestone

Comments

@dezren39
Copy link
Contributor

dezren39 commented Mar 2, 2024

Is it possible to allow a func before panic from DI functions such as Must*?

Basically, to log out the service name that caused panic.

@samber
Copy link
Owner

samber commented May 5, 2024

I think a stack trace would be more appropriate.

@samber samber added this to the v2.1 milestone May 5, 2024
@kcmvp
Copy link

kcmvp commented May 6, 2024

for a application level frameworkk solution, hope it can catch all the panic event together with some useful context let the application have enough information to make the proper handler.

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

3 participants