Go: refactor config (#17544)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-07-31 17:18:45 +08:00
committed by GitHub
parent 9db2e2314a
commit 36ae39bc60
60 changed files with 2708 additions and 1040 deletions

View File

@@ -178,7 +178,7 @@ func (h *SystemHandler) SetLogLevel(c *gin.Context) {
}
if config := server.GetConfig(); config != nil {
config.Log.Level = common.GetLogLevel()
config.SetLogLevel(req.Level)
}
common.SuccessWithData(c, gin.H{"level": req.Level}, "SUCCESS")