From 21711b960cdd537ac96b1120b60a19c565542a5d Mon Sep 17 00:00:00 2001 From: Lynn Smeria Date: Wed, 18 Mar 2020 20:51:21 +0200 Subject: [PATCH] Hide scheduling message when running hook --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d16bf61..2614597 100755 --- a/index.js +++ b/index.js @@ -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`); } });