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:
commit
04891f3721
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue