diff --git a/echo.go b/echo.go index 5b43fff0..4d983597 100644 --- a/echo.go +++ b/echo.go @@ -584,8 +584,11 @@ func (e *Echo) startTLS(address string) error { func (e *Echo) StartServer(s *http.Server) (err error) { // Setup e.colorer.SetOutput(e.Logger.Output()) - s.Handler = e s.ErrorLog = e.stdLogger + s.Handler = e + if e.Debug { + e.Logger.SetLevel(log.DEBUG) + } if s.TLSConfig == nil { if e.Listener == nil {