-
Notifications
You must be signed in to change notification settings - Fork 160
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
Use of log.Fatal causes upstream application to exit #710
Comments
Can you be specific about which log.Fatal use is bugging you? |
@muhlemmer my bad I posted the missing permalink in the original message |
As far as I can tell, If in a CLI |
We use it for a desktop application built with https://github.com/wailsapp/wails. In the random chance that the IdP timesout an error will be raised and the login server log a fatal error that executes Sounds good. I'll work on a PR this week. |
The use of
log.Fatal
causes the upstream application to exit.oidc/pkg/http/http.go
Lines 95 to 112 in c3c1bd3
Is there a reason why we don't want to return an error and/or the shutdown function and expect developers to implement the go-routine to shutdown appropriately?
log.Fatal
will kill the process even in goroutines https://go.dev/play/p/Hy6rKkePzJYThe text was updated successfully, but these errors were encountered: