优化结构
This commit is contained in:
@@ -309,6 +309,9 @@ func (h *Audit) CreateError(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
if err := h.recorder.CreateErrorMutationRequest(c.Request.Context(), &req); err != nil {
|
||||
if h.logger != nil {
|
||||
h.logger.ErrorContext(c.Request.Context(), "创建错误记录失败", "mod", "audit", "error", err)
|
||||
}
|
||||
Fail(c, "创建失败")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user