mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix issues with log level handling and clean up code
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
3c5431176b
commit
d626604b5e
6 changed files with 57 additions and 59 deletions
|
|
@ -126,7 +126,11 @@ 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, last);
|
||||
auto level = LogParser::guessLevel(msg);
|
||||
|
||||
if (level == MessageLevel::Unknown)
|
||||
level = last;
|
||||
|
||||
out.append(std::make_pair(level, msg));
|
||||
last = level;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue