1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user