mirror of
https://github.com/labstack/echo.git
synced 2024-11-28 08:38:39 +02:00
This reverts commit a75cbc85f8
.
This commit is contained in:
parent
a75cbc85f8
commit
b23e7c090a
4
echo.go
4
echo.go
@ -309,10 +309,9 @@ func (e *Echo) SetRenderer(r Renderer) {
|
||||
e.renderer = r
|
||||
}
|
||||
|
||||
// SetDebug enable/disable debug mode.
|
||||
// SetDebug enables/disables debug mode.
|
||||
func (e *Echo) SetDebug(on bool) {
|
||||
e.debug = on
|
||||
e.SetLogLevel(glog.DEBUG)
|
||||
}
|
||||
|
||||
// Debug returns debug mode (enabled or disabled).
|
||||
@ -570,6 +569,7 @@ 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())
|
||||
|
Loading…
Reference in New Issue
Block a user