zwxi 11 months ago
parent
commit
f60e584978
1 changed files with 2 additions and 2 deletions
  1. 2 2
      services/smart_report.go

+ 2 - 2
services/smart_report.go

@@ -179,7 +179,7 @@ finally:
 `
 
 	pyCode = fmt.Sprintf(pyCode, utils.ChromeDrivePath, reportUrl, filePath)
-
+	utils.FileLog.Info("pdf pyCode: \n" + pyCode)
 	cmd := exec.Command("python3", "-c", pyCode)
 	_, err = cmd.CombinedOutput()
 	defer func() {
@@ -229,7 +229,7 @@ finally:
 `
 
 	pyCode = fmt.Sprintf(pyCode, utils.ChromeDrivePath, reportUrl, filePath)
-
+	utils.FileLog.Info("jpeg pyCode: \n" + pyCode)
 	cmd := exec.Command("python3", "-c", pyCode)
 
 	_, err = cmd.CombinedOutput()