-
Notifications
You must be signed in to change notification settings - Fork 28
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
server.Start: recover and log panics #10
Conversation
411e98a
to
bf5a128
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @nmiyake and @bmoylan)
witchcraft/witchcraft.go, line 394 at r1 (raw file):
rErr = err } else { rErr = werror.Error("panic recovered", werror.UnsafeParam("recovered", r))
Does this double-wrap? (the svc1log.Error
call uses "panic recovered", so do we get "panic recovered" twice in this scenario?)
Also, we should update function documentation to state that all panics are recovered and logged and that, if any panic is encountered, the returned error will be non-nil and be the information on the panic (and only information on the panic -- any other error that was being returned will be overwritten)
witchcraft/witchcraft.go, line 394 at r1 (raw file): Previously, nmiyake (Nick Miyake) wrote…
This one (the error message) will end up in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
(except for the build failing issue :) |
This change is