Skip to content

Commit 4a2446d

Browse files
committed
GUI: Ignore errors with "debug" severity.
GUI doesn't know about "debug" severity. And it is not worth the trouble to add new category everywhere (icons etc) just for internal debug messages.
1 parent c9215e9 commit 4a2446d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

gui/threadresult.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ void ThreadResult::reportErr(const ErrorLogger::ErrorMessage &msg)
4747
{
4848
QMutexLocker locker(&mutex);
4949

50+
// GUI doesn't know how to properly handle debug messages so lets ignore them.
51+
if (msg._severity == "debug")
52+
return;
53+
5054
QList<unsigned int> lines;
5155
QStringList files;
5256

@@ -64,9 +68,6 @@ void ThreadResult::reportErr(const ErrorLogger::ErrorMessage &msg)
6468
files,
6569
lines,
6670
QString(msg._id.c_str()));
67-
68-
69-
7071
}
7172

7273
QString ThreadResult::GetNextFile()

0 commit comments

Comments
 (0)