Fix logging from evaluate

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-04-07 09:49:21 -07:00
parent 44c64cf586
commit 666b459107

View File

@ -25,7 +25,7 @@ module.exports = exports = async function process (tasks, cache) {
let result;
let status = await cache.get(task);
const { input, output } = task;
const taskLog = [ status.mode + (status.why ? '-' + status.why : ''), status.input, status.output ];
const taskLog = [ status.mode, (status.why ? status.why : ''), status.input, status.output ];
if (status.mode === 'skip') {
await cache.touch(task, lastSeen);
if (taskLog && LOG[taskLog[0]]) log.info(...taskLog);
@ -51,7 +51,6 @@ module.exports = exports = async function process (tasks, cache) {
status = await cache.set(task, result, lastSeen);
}
if (taskLog && LOG[taskLog[0]]) log.info(...taskLog);
if (cache.isProd) {