deploy: normalize print() messages

This commit is contained in:
Christopher Monsanto 2020-08-25 02:41:21 -04:00
parent 6625b457e6
commit a22db88368

View File

@ -112,19 +112,19 @@ export class ActionQueue {
addendum = ` (${entry.valid})`;
}
for (const obj of entry.debugObjs) {
console.log("DEBUG: ", obj);
console.log("DEBUG:", obj);
}
if (op.type === 'Copy') {
console.log(`COPY: ${op.src} ==> ${entry.dst}${addendum}`);
console.log(`COPY${addendum}: ${op.src} ==> ${entry.dst}`);
} else if (op.type === 'Write') {
console.log(`WRITE: ${op.data.length} characters ==> ${entry.dst}${addendum}`);
console.log(`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.log(`GDEBUG${addendum}:`, entry.obj);
}
}
}