Browse Source

fix: 继续调试pdf生成失败原因

大侠咬超人 2 days ago
parent
commit
2050df0bd3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Services/ExamPdfExportService.php

+ 2 - 2
app/Services/ExamPdfExportService.php

@@ -1011,7 +1011,7 @@ class ExamPdfExportService
         $utf8Html = $this->ensureUtf8Html($html);
         $written = file_put_contents($tmpHtml, $utf8Html);
 
-        Log::info('ExamPdfExportService: HTML文件已创建', [
+        Log::warning('ExamPdfExportService: [调试] HTML文件已创建', [
             'path' => $tmpHtml,
             'html_length' => strlen($utf8Html),
             'written_bytes' => $written,
@@ -1097,7 +1097,7 @@ class ExamPdfExportService
         $process->setTimeout(60); // 【优化】减少超时到60秒
         $killSignal = \defined('SIGKILL') ? \SIGKILL : 9;
 
-        Log::info('ExamPdfExportService: Chrome命令准备执行', [
+        Log::warning('ExamPdfExportService: [调试] Chrome命令准备执行', [
             'chrome_binary' => $chromeBinary,
             'html_path' => $htmlPath,
             'html_exists' => file_exists($htmlPath),