]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Tweak fix messages log parser
authorMarcin Haba <marcin.haba@bacula.pl>
Fri, 29 Jan 2021 17:42:46 +0000 (18:42 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:24 +0000 (09:03 +0100)
gui/baculum/protected/Web/JavaScript/misc.js

index 271490ad8460eb6d192c3038f3af69715579d674..a63415c01a3d330c3a15119e1eea41c1a09bad47 100644 (file)
@@ -818,7 +818,8 @@ var MsgEnvelope = {
                        /Please mount append Volume/g
                ],
                error: [
-                       /ERR=/g
+                       /ERR=/g,
+                       /error: /ig
                ]
        },
        init: function() {
@@ -899,12 +900,14 @@ var MsgEnvelope = {
                                if (this.issue_regex.warning[j].test(logs[i])) {
                                        logs[i] = '<span class="w3-orange">' + logs[i] + '</span>';
                                        warning = true;
+                                       break;
                                }
                        }
                        for (var j = 0; j < this.issue_regex.error.length; j++) {
                                if (this.issue_regex.error[j].test(logs[i])) {
                                        logs[i] = '<span class="w3-red">' + logs[i] + '</span>';
                                        error = true;
+                                       break;
                                }
                        }
                }