mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-27 00:51:55 +08:00
feat(recycler): add error cecycler (#10)
This commit is contained in:
@@ -15,10 +15,10 @@ import (
|
||||
)
|
||||
|
||||
func (revsuit *Revsuit) registerRouter() {
|
||||
revsuit.http.Router = gin.Default()
|
||||
if revsuit.logLevel != log.LevelTrace {
|
||||
revsuit.http.Router = gin.New()
|
||||
revsuit.http.Router.Use(gin.Recovery())
|
||||
revsuit.http.Router = gin.New()
|
||||
revsuit.http.Router.Use(recovery)
|
||||
if revsuit.logLevel == log.LevelTrace {
|
||||
revsuit.http.Router.Use(gin.Logger())
|
||||
}
|
||||
|
||||
revsuit.registerPlatformRouter()
|
||||
|
||||
Reference in New Issue
Block a user