改进操作日志

This commit is contained in:
GoEdgeLab
2020-11-20 15:32:42 +08:00
parent 60ba3e0a05
commit fc459a50b9
142 changed files with 230 additions and 100 deletions

View File

@@ -90,7 +90,7 @@ func (this *CleanAction) RunPost(params struct {
this.Data["results"] = results
// 创建日志
this.CreateLog(oplogs.LevelInfo, "清除缓存,缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "清除缓存,缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -80,7 +80,7 @@ func (this *CreatePopupAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "创建缓存策略:%d", createResp.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "创建缓存策略:%d", createResp.CachePolicyId)
this.Success()
}

View File

@@ -30,7 +30,7 @@ func (this *DeleteAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "删除缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "删除缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -110,7 +110,7 @@ func (this *PreheatAction) RunPost(params struct {
this.Data["results"] = results
// 创建日志
this.CreateLog(oplogs.LevelInfo, "预热缓存,缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "预热缓存,缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -109,7 +109,7 @@ func (this *PurgeAction) RunPost(params struct {
this.Data["results"] = results
// 创建日志
this.CreateLog(oplogs.LevelInfo, "删除缓存,缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "删除缓存,缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -90,7 +90,7 @@ func (this *StatAction) RunPost(params struct {
this.Data["results"] = results
// 创建日志
this.CreateLog(oplogs.LevelInfo, "统计缓存,缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "统计缓存,缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -58,7 +58,7 @@ func (this *TestReadAction) RunPost(params struct {
this.Data["results"] = results
// 创建日志
this.CreateLog(oplogs.LevelInfo, "测试读取,缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "测试读取,缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -61,7 +61,7 @@ func (this *TestWriteAction) RunPost(params struct {
this.Data["results"] = results
// 创建日志
this.CreateLog(oplogs.LevelInfo, "测试写入,缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "测试写入,缓存策略:%d", params.CachePolicyId)
this.Success()
}

View File

@@ -106,7 +106,7 @@ func (this *UpdateAction) RunPost(params struct {
}
// 创建日志
this.CreateLog(oplogs.LevelInfo, "修改缓存策略:%d", params.CachePolicyId)
defer this.CreateLog(oplogs.LevelInfo, "修改缓存策略:%d", params.CachePolicyId)
this.Success()
}