diff --git a/library/contentaudit/textaudit/textaudit.go b/library/contentaudit/textaudit/textaudit.go index a6966516..13aa9c72 100644 --- a/library/contentaudit/textaudit/textaudit.go +++ b/library/contentaudit/textaudit/textaudit.go @@ -69,6 +69,7 @@ func Run(batchId string) (successNum int, failNum int, err error) { return } results = append(results, _result.Body.Data.Elements...) + logger.Info("Receive the response from ScanTextWithOptions: %v", _result.String()) } // 4.处理应答 @@ -123,6 +124,7 @@ func handleScanTextResponseBodyDataElements(ctrlBlock *TextAuditTaskBatchControl action := &TextAuditAction{} // 1.立即在textaudit-textaudit中更新该次审核结果 + logger.Info("text_audit_id:%v", taskCtrlBlocks[i].TextAuditTask.TextAuditId) pass, textaudit, err := handleTextAudit(taskCtrlBlocks[i].TextAuditTask.TextAuditId, result) if err != nil { logger.Error("handleTextAudit fail: %v", err) @@ -150,11 +152,13 @@ func handleTextAudit(id *string, result *textaudit.ScanTextResponseBodyDataEleme textaudit = &dbstruct.TextAudit{ Id: id, } + logger.Info("entering copyScanResultInfo...") pass, err = copyScanResultInfo(textaudit, result) if err != nil { logger.Error("Copy Scan Result Info fail: %v\n", err) return } + logger.Info("entering _DefaultTextAudit.OpUpdate...") if err = _DefaultTextAudit.OpUpdate(ctx, &textauditproto.OpUpdateReq{ TextAudit: textaudit, }); err != nil {