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

@ -8,4 +8,5 @@ SM-
SM- SM-
WS-X68 WS-X68
WS-X68 WS-X68
WS-X68 WS-X68
yellow

View File

@ -105,7 +105,6 @@ export async function runtimeCheckLogs(folderPath) {
value + value +
"'" "'"
); );
console.log(checkLog[0].length);
if (checkLog[0].length === 0) { if (checkLog[0].length === 0) {
console.log(content[index]); console.log(content[index]);
await LogReport.create({ await LogReport.create({

View File

@ -51,7 +51,7 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
let listKeyValues = await KeyValue.all(); let listKeyValues = await KeyValue.all();
// console.log(listKeyValues) // console.log(listKeyValues)
let data = content.data.split("\n"); let data = content.data.split("\n");
console.log(data) // console.log(data)
data.map((line, index) => { data.map((line, index) => {
// console.log(line) // console.log(line)
data[index] = "<span style='background-color:pink;'>" + (index + 1) + "</span>" + line; data[index] = "<span style='background-color:pink;'>" + (index + 1) + "</span>" + line;