This commit is contained in:
lwl0608 2024-05-23 11:31:10 +08:00
parent 5d2735e957
commit a0096de95b
1 changed files with 1 additions and 1 deletions

View File

@ -10,9 +10,9 @@ func NewRouter() *gin.Engine {
gin.SetMode(gin.ReleaseMode)
router := gin.New()
router.Use(middleware.TimeoutMiddleware())
router.Use(middleware.LoggerMiddleware(gin.LoggerConfig{}))
router.Use(gin.RecoveryWithWriter(logger.Global.Out))
//router.Use(middleware.TimeoutMiddleware())
return router
}