mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[优化] 添加清除规则链debug日志接口,修复日志读取长度
This commit is contained in:
@@ -34,6 +34,12 @@ func (r *RuleChainApi) GetNodeDebug(rc *restfulx.ReqCtx) {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *RuleChainApi) ClearNodeDebug(rc *restfulx.ReqCtx) {
|
||||
ruleId := restfulx.QueryParam(rc, "ruleId")
|
||||
nodeId := restfulx.QueryParam(rc, "nodeId")
|
||||
rule_engine.ClearDebugData(ruleId, nodeId)
|
||||
}
|
||||
|
||||
// GetRuleChainList WorkInfo列表数据
|
||||
func (p *RuleChainApi) GetRuleChainList(rc *restfulx.ReqCtx) {
|
||||
data := entity.RuleChain{}
|
||||
|
||||
Reference in New Issue
Block a user