mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 02:00:24 +00:00
✏️ 调整 log 格式
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user