fix recover
This commit is contained in:
parent
9c5d145128
commit
abf5a78356
|
@ -10,9 +10,9 @@ func NewRouter() *gin.Engine {
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
|
|
||||||
router := gin.New()
|
router := gin.New()
|
||||||
|
router.Use(middleware.TimeoutMiddleware())
|
||||||
router.Use(middleware.LoggerMiddleware(gin.LoggerConfig{}))
|
router.Use(middleware.LoggerMiddleware(gin.LoggerConfig{}))
|
||||||
router.Use(gin.RecoveryWithWriter(logger.Global.Out))
|
router.Use(gin.RecoveryWithWriter(logger.Global.Out))
|
||||||
router.Use(middleware.TimeoutMiddleware())
|
|
||||||
|
|
||||||
return router
|
return router
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue