mirror of
https://github.com/labstack/echo.git
synced 2025-03-21 21:27:04 +02:00
This reverts commit eed456ee8793452837f60d897127296f87af5ee9.
This commit is contained in:
parent
eed456ee87
commit
a75cbc85f8
4
echo.go
4
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user