Set regexp equal to new format

This commit is contained in:
jaknapper 2025-05-14 16:36:16 +01:00
parent 4f8e508dd5
commit a1ef332e31

View file

@ -153,7 +153,7 @@ export default {
let response = await axios.get(this.logFileURI);
let lines = response.data.split("\n");
let logs = [];
^\[(.+?)\] \[(DEBUG|INFO|WARNING|ERROR|CRITICAL)\] (.*)$
let regexp = /^\[(.+?)\] \[(DEBUG|INFO|WARNING|ERROR|CRITICAL)\] (.*)$/;
for (let line of lines) {
if (line.length > 0) {
let m = line.match(regexp);