Skip to content

Commit acb88ff

Browse files
committed
[Controls] Apply color to fatal/critical logs
1 parent cbba4ce commit acb88ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meshroom/ui/qml/Controls/TextFileViewer.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@ Item {
285285
// Color line according to log level
286286
if (text.indexOf("[warning]") >= 0)
287287
return Colors.orange
288-
else if(text.indexOf("[error]") >= 0)
288+
else if (text.indexOf("[error]") >= 0)
289289
return Colors.red
290+
else if (text.indexOf("[fatal]") >= 0 || text.indexOf("[critical]") >= 0)
291+
return Colors.firebrick
290292
return palette.text
291293
}
292294
}

0 commit comments

Comments
 (0)