zwxi hace 10 meses
padre
commit
9449a0f0cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {