mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
更新运行时致命错误打印堆栈
This commit is contained in:
parent
725a0ac0ab
commit
4dc278f9cb
@ -2,17 +2,16 @@ package main
|
||||
|
||||
import (
|
||||
"github.com/bufanyun/hotgo/boot"
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
var (
|
||||
ctx = gctx.New()
|
||||
)
|
||||
var ctx = gctx.New()
|
||||
|
||||
if err := boot.Main.RunWithError(ctx); err != nil {
|
||||
g.Log().Fatal(ctx, err)
|
||||
g.Log().Fatal(ctx, gerror.Stack(err))
|
||||
}
|
||||
}
|
||||
|
BIN
hotgo-server/resource/public/favicon.ico
Normal file
BIN
hotgo-server/resource/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
Loading…
Reference in New Issue
Block a user