change runtimeCheckLog
This commit is contained in:
parent
ef07a6af47
commit
6de80b0104
|
|
@ -94,11 +94,7 @@ export async function runtimeCheckLogs(folderPath) {
|
|||
);
|
||||
|
||||
watcher.setMaxListeners(200);
|
||||
await fileList.slice(0,40)
|
||||
?.filter((i) => fileList_old.includes(i) === false)
|
||||
?.forEach((fileName) => {
|
||||
//path file
|
||||
const filePath = `${folderPath}/${fileName}`;
|
||||
|
||||
watcher.on("change", async (path) => {
|
||||
// fs.watchFile(filePath,{ interval: 15000 },
|
||||
// async (eventType) => {
|
||||
|
|
@ -273,6 +269,12 @@ export async function runtimeCheckLogs(folderPath) {
|
|||
// }
|
||||
console.log(path + " change")
|
||||
});
|
||||
await fileList.slice(0,40)
|
||||
?.filter((i) => fileList_old.includes(i) === false)
|
||||
?.forEach((fileName) => {
|
||||
//path file
|
||||
const filePath = `${folderPath}/${fileName}`;
|
||||
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue