change runtimeCheckLog
This commit is contained in:
parent
2c4a0c7d11
commit
e750e87107
|
|
@ -88,13 +88,13 @@ export async function runtimeCheckLogs(folderPath) {
|
||||||
async function watchFilesInList() {
|
async function watchFilesInList() {
|
||||||
//only check new file ---> fileList - fileList_old = new file
|
//only check new file ---> fileList - fileList_old = new file
|
||||||
const watcher = chokidar.watch(
|
const watcher = chokidar.watch(
|
||||||
fileList
|
fileList.slice(0,40)
|
||||||
?.filter((i) => fileList_old.includes(i) === false)
|
?.filter((i) => fileList_old.includes(i) === false)
|
||||||
.map((file) => folderPath + "/" + file)
|
.map((file) => folderPath + "/" + file)
|
||||||
);
|
);
|
||||||
|
|
||||||
watcher.setMaxListeners(200);
|
watcher.setMaxListeners(200);
|
||||||
await fileList
|
await fileList.slice(0,40)
|
||||||
?.filter((i) => fileList_old.includes(i) === false)
|
?.filter((i) => fileList_old.includes(i) === false)
|
||||||
?.forEach((fileName) => {
|
?.forEach((fileName) => {
|
||||||
//path file
|
//path file
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue