Skip to content

Commit

Permalink
Set the log receiver to Console when in UI mode
Browse files Browse the repository at this point in the history
Previously it was always the buffered one, and never output and log info.
  • Loading branch information
NotStirred committed Sep 21, 2024
1 parent 16b409c commit 4657e72
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
import se.llbit.fx.ToolPane;
import se.llbit.fxutil.Dialogs;
import se.llbit.fxutil.GroupedChangeListener;
import se.llbit.log.ConsoleReceiver;
import se.llbit.log.Level;
import se.llbit.log.Log;
import se.llbit.math.Vector3;
Expand Down Expand Up @@ -453,6 +454,7 @@ public File getSceneFile(String fileName) {
}
});

Log.setReceiver(ConsoleReceiver.INSTANCE, Level.INFO);
Log.setReceiver(new UILogReceiver(), Level.ERROR, Level.WARNING);

mapLoader = new WorldMapLoader(this, mapView);
Expand Down

0 comments on commit 4657e72

Please sign in to comment.