mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-09-17 16:56:39 +08:00
更新运行时致命错误打印堆栈
This commit is contained in:
parent
725a0ac0ab
commit
4dc278f9cb
@ -2,17 +2,16 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bufanyun/hotgo/boot"
|
"github.com/bufanyun/hotgo/boot"
|
||||||
|
"github.com/gogf/gf/v2/errors/gerror"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/gogf/gf/v2/os/gctx"
|
"github.com/gogf/gf/v2/os/gctx"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
var (
|
var ctx = gctx.New()
|
||||||
ctx = gctx.New()
|
|
||||||
)
|
|
||||||
|
|
||||||
if err := boot.Main.RunWithError(ctx); err != nil {
|
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