From a75cbc85f85df826e42ce1ca8d3fca25625bf022 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Wed, 27 Jul 2016 09:04:41 -0700 Subject: [PATCH] Revert "closes #605", closes #606 This reverts commit eed456ee8793452837f60d897127296f87af5ee9. --- echo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/echo.go b/echo.go index e20a5289..f66b62aa 100644 --- a/echo.go +++ b/echo.go @@ -309,9 +309,10 @@ func (e *Echo) SetRenderer(r Renderer) { e.renderer = r } -// SetDebug enables/disables debug mode. +// SetDebug enable/disable debug mode. func (e *Echo) SetDebug(on bool) { e.debug = on + e.SetLogLevel(glog.DEBUG) } // Debug returns debug mode (enabled or disabled). @@ -569,7 +570,6 @@ func (e *Echo) Run(s engine.Server) { s.SetHandler(e) s.SetLogger(e.logger) if e.Debug() { - e.SetLogLevel(glog.DEBUG) e.logger.Debug("running in debug mode") } e.logger.Error(s.Start())