From a40b91282a7c19df56897cff116f52b2f5a852ac Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 1 Oct 2023 18:02:40 -0600 Subject: [PATCH] add debug logs --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index e72ea08..3316b2a 100644 --- a/index.js +++ b/index.js @@ -93,6 +93,11 @@ const watcher = chokidar.watch(config.freepbx.voicemaildir, { ignored: /(^|[\/\\])\../, persistent: true }); + +watcher.on('all', (event, path) => { + console.log(event, path); +}); + watched = []; watcher.on("add", async (filePath, stats) => { if (startup) return;