From 2ba5e34946c26c2cfbf5689fbd0a97ed5c2db803 Mon Sep 17 00:00:00 2001 From: Tom Martin Date: Sat, 21 Sep 2024 19:58:54 +0100 Subject: [PATCH] Set the log receiver to Console when in UI mode (#1769) Previously it was always the buffered one, and never output and log info. --- .../java/se/llbit/chunky/ui/controller/ChunkyFxController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chunky/src/java/se/llbit/chunky/ui/controller/ChunkyFxController.java b/chunky/src/java/se/llbit/chunky/ui/controller/ChunkyFxController.java index a63623bf9..5e1506390 100644 --- a/chunky/src/java/se/llbit/chunky/ui/controller/ChunkyFxController.java +++ b/chunky/src/java/se/llbit/chunky/ui/controller/ChunkyFxController.java @@ -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; @@ -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);