This commit is contained in:
fengchuanhn@gmail.com
2026-05-18 00:27:14 +08:00
parent 231e4167d3
commit 9edf656828
2 changed files with 32 additions and 5 deletions

View File

@@ -369,6 +369,13 @@ export async function executeVideoRewrite(store) {
const p = e.payload;
if (p?.type === "progress" && typeof p.status === "string") {
store.rewriteProgress = p.status;
} else if (p?.type === "log") {
const prefix = `[nodejs/${p.scriptName || PIPELINE_SCRIPT}]`;
const text =
p.fields != null ? `${p.msg} ${JSON.stringify(p.fields)}` : p.msg;
if (p.level === "error") console.error(prefix, text);
else if (p.level === "warn") console.warn(prefix, text);
else console.info(prefix, text);
}
});
} catch {