From 0a5dd7ea7e44c201152176d3263ae98ae2b855d9 Mon Sep 17 00:00:00 2001 From: joseph le Date: Tue, 29 Aug 2023 08:18:32 +0700 Subject: [PATCH] update runtimeCheckLog --- app/store/logs/abc.log | 3 ++- app/utils/runtimeCheckLogs.ts | 1 - start/routes.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/store/logs/abc.log b/app/store/logs/abc.log index 7c1e924..81d46a7 100644 --- a/app/store/logs/abc.log +++ b/app/store/logs/abc.log @@ -8,4 +8,5 @@ SM- SM- WS-X68 WS-X68 -WS-X68 \ No newline at end of file +WS-X68 +yellow \ No newline at end of file diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index 167469e..6b0ceb8 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -105,7 +105,6 @@ export async function runtimeCheckLogs(folderPath) { value + "'" ); - console.log(checkLog[0].length); if (checkLog[0].length === 0) { console.log(content[index]); await LogReport.create({ diff --git a/start/routes.ts b/start/routes.ts index 58f3f34..aaf4f7d 100644 --- a/start/routes.ts +++ b/start/routes.ts @@ -51,7 +51,7 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => { let listKeyValues = await KeyValue.all(); // console.log(listKeyValues) let data = content.data.split("\n"); -console.log(data) +// console.log(data) data.map((line, index) => { // console.log(line) data[index] = "" + (index + 1) + "" + line;