add debug logs
This commit is contained in:
parent
9df1f44fb5
commit
a40b91282a
5
index.js
5
index.js
|
@ -93,6 +93,11 @@ const watcher = chokidar.watch(config.freepbx.voicemaildir, {
|
||||||
ignored: /(^|[\/\\])\../,
|
ignored: /(^|[\/\\])\../,
|
||||||
persistent: true
|
persistent: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watcher.on('all', (event, path) => {
|
||||||
|
console.log(event, path);
|
||||||
|
});
|
||||||
|
|
||||||
watched = [];
|
watched = [];
|
||||||
watcher.on("add", async (filePath, stats) => {
|
watcher.on("add", async (filePath, stats) => {
|
||||||
if (startup) return;
|
if (startup) return;
|
||||||
|
|
Loading…
Reference in a new issue