mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 05:21:30 +00:00
when panic show the request url
This commit is contained in:
parent
419c3fc772
commit
57781d1001
@ -390,6 +390,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var stack string
|
var stack string
|
||||||
|
Critical("the request url is ", r.URL.Path)
|
||||||
Critical("Handler crashed with error", err)
|
Critical("Handler crashed with error", err)
|
||||||
for i := 1; ; i++ {
|
for i := 1; ; i++ {
|
||||||
_, file, line, ok := runtime.Caller(i)
|
_, file, line, ok := runtime.Caller(i)
|
||||||
@ -411,6 +412,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
|
|||||||
handler(rw, r)
|
handler(rw, r)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
Critical("the request url is ", r.URL.Path)
|
||||||
Critical("Handler crashed with error", err)
|
Critical("Handler crashed with error", err)
|
||||||
for i := 1; ; i++ {
|
for i := 1; ; i++ {
|
||||||
_, file, line, ok := runtime.Caller(i)
|
_, file, line, ok := runtime.Caller(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user