Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7762fe

Browse files
committed
TWEAK: Include the URL in panic messages.
1 parent7abdf3b commitf7762fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎router_serve.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ func (rootRouter *Router) handlePanic(rw *AppResponseWriter, req *Request, err i
241241
stack:=make([]byte,size)
242242
stack=stack[:runtime.Stack(stack,false)]
243243

244-
ERROR.Printf("%v\n",err)
245-
ERROR.Printf("%s\n",string(stack))
244+
ERROR.Printf("PANIC:\nURL: %v\nERROR: %v\nSTACK: %s\n",req.URL,err,string(stack))
246245
}
247246

248247
funcinvoke(handler reflect.Value,ctx reflect.Value,values []reflect.Value) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp