mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-02-07 18:16:17 +00:00
Fix logging from evaluate
This commit is contained in:
parent
44c64cf586
commit
666b459107
@ -25,7 +25,7 @@ module.exports = exports = async function process (tasks, cache) {
|
|||||||
let result;
|
let result;
|
||||||
let status = await cache.get(task);
|
let status = await cache.get(task);
|
||||||
const { input, output } = 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') {
|
if (status.mode === 'skip') {
|
||||||
await cache.touch(task, lastSeen);
|
await cache.touch(task, lastSeen);
|
||||||
if (taskLog && LOG[taskLog[0]]) log.info(...taskLog);
|
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);
|
status = await cache.set(task, result, lastSeen);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (taskLog && LOG[taskLog[0]]) log.info(...taskLog);
|
if (taskLog && LOG[taskLog[0]]) log.info(...taskLog);
|
||||||
|
|
||||||
if (cache.isProd) {
|
if (cache.isProd) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user