add debug logs

This commit is contained in:
Christopher Cookman 2023-10-01 18:02:40 -06:00
parent 9df1f44fb5
commit a40b91282a
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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;