dinever / golf

:golf: The Golf web framework

Home Page:https://golf.readme.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Print out stack trace with when error occurs

dinever opened this issue · comments

It would be great if someone could add some code here to enable stack trace logging for debugging.

And it would be great if stack trace can be printed on the error page, like this:

golang_trace-1024x431

Referred some code from Gin. Now the RecoverMiddleware prints out the stack trace. However, we still need to show stack trace directly on the error page.