deploy: write info to stderr instead of stdout

interferes with tar
This commit is contained in:
Christopher Monsanto
2023-04-05 01:12:44 -04:00
parent 9d3e9abebf
commit 608a112faa
2 changed files with 7 additions and 8 deletions

View File

@@ -113,19 +113,19 @@ export class ActionQueue {
addendum = ` (${entry.valid})`;
}
for (const obj of entry.debugObjs) {
console.log("DEBUG:", obj);
console.error("DEBUG:", obj);
}
if (op.type === 'Copy') {
console.log(`COPY${addendum}: ${op.src} ==> ${entry.dst}`);
console.error(`COPY${addendum}: ${op.src} ==> ${entry.dst}`);
} else if (op.type === 'Write') {
console.log(`WRITE${addendum}: ${op.data.length} characters ==> ${entry.dst}`);
console.error(`WRITE${addendum}: ${op.data.length} characters ==> ${entry.dst}`);
}
} else if (entry.type === 'Debug') {
let addendum = '';
if (entry.stray) {
addendum = ` (stray)`;
}
console.log(`GDEBUG${addendum}:`, entry.obj);
console.error(`GDEBUG${addendum}:`, entry.obj);
}
}
}