zwxi 10 months ago
parent
commit
9449a0f0cf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/smart_report.go

+ 1 - 1
services/smart_report.go

@@ -198,7 +198,7 @@ finally:
 
 	pyCode = fmt.Sprintf(pyCode, utils.ChromeDrivePath, reportUrl, filePath)
 	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
-	go alarm_msg.SendAlarmMsg("ReportToPdf failed:"+err.Error(), 3)
+	go alarm_msg.SendAlarmMsg("pdf pyCode: \n" + pyCode, 3)
 	cmd := exec.Command("python3", "-c", pyCode)
 	_, err = cmd.CombinedOutput()
 	if err != nil {