1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:50:54 +00:00

Proposal for adding a ":" for stack trace printout

Mainly useful for Sublime users with goto anything.
This commit is contained in:
Francois 2014-08-30 21:27:21 +02:00
parent d8614e80e7
commit bc4780091b

View File

@ -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
if !ok { if !ok {
break break
} }
Critical(file, line) Critical(fmt.Sprintf("%s:%d", file, line))
} }
} }
} }