change runtimeCheckLog

This commit is contained in:
joseph le 2023-10-04 08:30:26 +07:00
parent 97c5c1285f
commit e020f1a109
1 changed files with 2 additions and 2 deletions

View File

@ -209,10 +209,10 @@ export async function runtimeCheckLogs(folderPath) {
//true: import log to log_report table, send report to Zulip
setTimeout(async () => {
if (lines.length === 0) {
console.log(`${fileName} has changed (${eventType})---Good`);
console.log(`${fileName} has changed ---Good`);
} else {
console.log(
`${fileName} has changed (${eventType})---SOS---${lines.length}`
`${fileName} has changed ---SOS---${lines.length}`
);
let allReport_new = await LogReport.all();
let fileDetect = allFile?.filter(