diff --git a/echo.go b/echo.go index f6d89b966..b70847dd0 100644 --- a/echo.go +++ b/echo.go @@ -389,6 +389,9 @@ func (e *Echo) Routers() map[string]*Router { func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) { if c.Response().Committed { + if e.Debug { + e.Logger.Debug("Response is already committed, returning immediately") + } return }