Skip to content

Commit

Permalink
SetErrorHandler added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tugba Dartici committed Apr 14, 2017
1 parent 209fd5d commit 198ed8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions router.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func (r *Router) SetPanicHandler(fn PanicHandle) {
}
}

func (r *Router) SetErrorHandler(fn ErrorHandle) {
r.errorHandler = fn
}

// DisableDebug disables the debug outputs that might be too much for some people
func (r *Router) DisableDebug() {
r.DebugLog.SetOutput(ioutil.Discard)
Expand Down

0 comments on commit 198ed8a

Please sign in to comment.