Hide scheduling message when running hook

This commit is contained in:
Lynn Smeria 2020-03-18 20:51:21 +02:00
parent fcdb7a4ad3
commit 21711b960c

View file

@ -53,7 +53,6 @@ const poll = async () => {
.filter(x => deltaForFolders[x.folder])
.forEach(hook => {
const timeToWait = hook.time - deltaForFolders[hook.folder];
console.log(`scheduled hook "${hook.path}" to run in ${timeToWait}ms`);
if (timeToWait < 0) {
const existingPromise = state.promisesForHooks[hook.path];
if (existingPromise) {
@ -76,6 +75,8 @@ const poll = async () => {
delete state.promisesForHooks[hook.path];
});
}
} else {
console.log(`scheduled hook "${hook.path}" to run in ${timeToWait}ms`);
}
});