Merge branch 'gui-logging' into 'v3'

Lazier regex for finding logs with square brackets

See merge request openflexure/openflexure-microscope-server!230
This commit is contained in:
Joe Knapper 2025-05-14 17:16:22 +00:00
commit 04891f3721

View file

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