mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 13:33:48 +08:00
Go: refactor config (#17544)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user