update runtimeCheckLog

This commit is contained in:
joseph le 2023-08-29 08:18:32 +07:00
parent 86efd162c9
commit 0a5dd7ea7e
3 changed files with 3 additions and 3 deletions

View File

@ -9,3 +9,4 @@ SM-
WS-X68
WS-X68
WS-X68
yellow

View File

@ -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({

View File

@ -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] = "<span style='background-color:pink;'>" + (index + 1) + "</span>" + line;