This commit is contained in:
jxxghp
2024-03-09 16:49:48 +08:00
parent 9e43d77ac4
commit 49b71fcf5d

View File

@@ -34,7 +34,7 @@ function extractLogDetailsFromLogs(logs: string[]): { level: string; time: strin
const matches = RegExp(logPattern).exec(log)
if (matches && matches.length === 5) {
const [_, level, time, program, content] = matches
logDetails.push({ level, time, program, content })
logDetails.unshift({ level, time, program, content })
}
}