mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 07:19:52 +00:00
fix(cli): expose render debug mode
Adds the render --debug CLI flag, forwards it through Docker/local render paths, and captures full producer debug artifacts from pipeline start.
This commit is contained in:
@@ -914,6 +914,14 @@ export async function executeRenderJob(
|
||||
assertNotAborted();
|
||||
assertConfiguredFfmpegBinariesExist();
|
||||
|
||||
if (!existsSync(workDir)) mkdirSync(workDir, { recursive: true });
|
||||
|
||||
if (job.config.debug) {
|
||||
const logPath = join(workDir, "render.log");
|
||||
restoreLogger = installDebugLogger(logPath, log);
|
||||
log.info("[Render] Debug artifacts enabled", { workDir, logPath });
|
||||
}
|
||||
|
||||
log.info("[Render] Pipeline started", {
|
||||
platform: process.platform,
|
||||
arch: process.arch,
|
||||
@@ -939,13 +947,6 @@ export async function executeRenderJob(
|
||||
requestedWorkers: job.config.workers ?? "auto",
|
||||
});
|
||||
|
||||
if (!existsSync(workDir)) mkdirSync(workDir, { recursive: true });
|
||||
|
||||
if (job.config.debug) {
|
||||
const logPath = join(workDir, "render.log");
|
||||
restoreLogger = installDebugLogger(logPath, log);
|
||||
}
|
||||
|
||||
const entryFile = job.config.entryFile || "index.html";
|
||||
let htmlPath = join(projectDir, entryFile);
|
||||
if (!existsSync(htmlPath)) {
|
||||
|
||||
Reference in New Issue
Block a user