✏️ 调整 log 格式

This commit is contained in:
fumiama
2021-09-27 21:27:30 +08:00
parent 52a8a9de6f
commit 3623a88b16
2 changed files with 6 additions and 13 deletions

View File

@@ -61,11 +61,6 @@ func controller() {
}
}()
if log.GetLevel() != log.DebugLevel {
gin.SetMode(gin.ReleaseMode)
gin.DefaultWriter = io.Discard
}
engine := gin.New()
// 支持跨域
engine.Use(cors())