mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(logs): lazily parse log message label (#2359)
This commit is contained in:

committed by
GitHub

parent
d437cc2539
commit
5af06bd872
@@ -269,7 +269,7 @@ settingsRoutes.get(
|
||||
const timestamp = line.match(new RegExp(/.{24}/)) || [];
|
||||
const level = line.match(new RegExp(/(?<=.{24}\s\[).+?(?=\])/)) || [];
|
||||
const label =
|
||||
line.match(new RegExp(/(?<=.{24}\s\[.+\]\[).+(?=\])/)) || [];
|
||||
line.match(new RegExp(/(?<=.{24}\s\[.+\]\[).+?(?=\])/)) || [];
|
||||
const message =
|
||||
line.match(new RegExp(/(?<=\[.+\]:\s)[\s\S][^\r]+/)) || [];
|
||||
const data = message[0].match(jsonRegexp) || [];
|
||||
|
Reference in New Issue
Block a user