Don't ignore panic log

This commit is contained in:
Lunny Xiao 2024-09-20 09:52:43 -07:00
parent 6a853d8c0c
commit 58fdadd69d
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func runServ(c *cli.Context) error {
defer func() {
if err := recover(); err != nil {
_ = fail(ctx, "Internal Server Error", "Panic: %v", err)
_ = fail(ctx, "Internal Server Error", "Panic: %v\n%s", err, log.Stack(2))
}
}()