doc(recovery): add RecoveryWithWriter doc (#1097)
This commit is contained in:
parent
cdf26f994b
commit
848fa41ca0
@ -26,6 +26,7 @@ func Recovery() HandlerFunc {
|
||||
return RecoveryWithWriter(DefaultErrorWriter)
|
||||
}
|
||||
|
||||
// RecoveryWithWriter returns a middleware for a given writer that recovers from any panics and writes a 500 if there was one.
|
||||
func RecoveryWithWriter(out io.Writer) HandlerFunc {
|
||||
var logger *log.Logger
|
||||
if out != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user