mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-06 11:46:24 -07:00
Print stack trace in MakePost to stdout if recover returns non-nil
This commit is contained in:
parent
fb2e68c767
commit
53d5c877ed
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ func MakePost(writer http.ResponseWriter, request *http.Request) {
|
|||
errEv.Caller().
|
||||
Str("recover", fmt.Sprintf("%v", a)).
|
||||
Bytes("stack", debug.Stack()).
|
||||
Msg("Recovered from panic while calling manage function")
|
||||
Msg("Recovered from panic")
|
||||
debug.PrintStack()
|
||||
fmt.Println("Recovered from panic in MakePost:", a)
|
||||
}
|
||||
errEv.Discard()
|
||||
infoEv.Discard()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue