Commit 0692f928 authored by astaxie's avatar astaxie

Merge branch 'develop' of https://github.com/astaxie/beego into develop

parents 41adcf99 e6b42a40
...@@ -818,8 +818,8 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques ...@@ -818,8 +818,8 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques
if !ok { if !ok {
break break
} }
Critical(file, line) Critical(fmt.Sprintf("%s:%d", file, line))
stack = stack + fmt.Sprintln(file, line) stack = stack + fmt.Sprintln(fmt.Sprintf("%s:%d", file, line))
} }
middleware.ShowErr(err, rw, r, stack) middleware.ShowErr(err, rw, r, stack)
} }
...@@ -840,7 +840,7 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques ...@@ -840,7 +840,7 @@ func (p *ControllerRegistor) recoverPanic(rw http.ResponseWriter, r *http.Reques
if !ok { if !ok {
break break
} }
Critical(file, line) Critical(fmt.Sprintf("%s:%d", file, line))
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment