mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Show why we’re updating a cached file
This commit is contained in:
parent
b9f82a7018
commit
4fb7d3cc76
@ -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.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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user