Skip to content

Commit

Permalink
feat: 开启recovery (#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
MQPearth authored Jan 4, 2024
1 parent e1d214b commit 8aefb5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/initialize/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func Routers() *gin.Engine {
}

Router := gin.New()

Router.Use(gin.Recovery())
if global.GVA_CONFIG.System.Env != "public" {
Router.Use(gin.Logger(), gin.Recovery())
Router.Use(gin.Logger())
}

InstallPlugin(Router) // 安装插件
Expand Down

0 comments on commit 8aefb5d

Please sign in to comment.