mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Only continue log level if line starts with whitespace; reintroduce exception detection
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
92738feeba
commit
c018b60816
5 changed files with 13 additions and 16 deletions
|
|
@ -126,10 +126,7 @@ class XmlLogParseTest : public QObject {
|
|||
last = entry.level;
|
||||
} else if (std::holds_alternative<LogParser::PlainText>(item)) {
|
||||
auto msg = std::get<LogParser::PlainText>(item).message;
|
||||
auto level = LogParser::guessLevel(msg);
|
||||
|
||||
if (level == MessageLevel::Unknown)
|
||||
level = last;
|
||||
auto level = LogParser::guessLevel(msg, last);
|
||||
|
||||
out.append(std::make_pair(level, msg));
|
||||
last = level;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue