mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Take fatal log level into account when selecting text color
This commit is contained in:
parent
9f6608a9c4
commit
015834c9b9
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public class ServerPanel extends JPanel {
|
|||
consoleOutput.setEditable(false);
|
||||
ListenableAppender.addListener("GuiServerOutput", message -> {
|
||||
Level level = message.getLevel();
|
||||
Color color = level == Level.ERROR ? ERROR_COLOR : level == Level.WARN ? WARNING_COLOR : INFO_COLOR;
|
||||
Color color = (level == Level.ERROR || level == Level.FATAL) ? ERROR_COLOR : level == Level.WARN ? WARNING_COLOR : INFO_COLOR;
|
||||
appendConsoleOutput(message.getFormattedMessage(), color);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue