From 1302a0800954bf3bfb1bf905711d1803f289a6f9 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Wed, 10 May 2017 10:28:50 -0700 Subject: [PATCH] Fixed #925 Signed-off-by: Vishal Rana --- echo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {