diff --git a/src/main/java/net/raphimc/viaproxy/util/logging/Logger.java b/src/main/java/net/raphimc/viaproxy/util/logging/Logger.java index 9017d92..2b05bff 100644 --- a/src/main/java/net/raphimc/viaproxy/util/logging/Logger.java +++ b/src/main/java/net/raphimc/viaproxy/util/logging/Logger.java @@ -36,7 +36,9 @@ public class Logger { public static final PrintStream SYSERR = System.err; public static void setup() { - AnsiConsole.systemInstall(); + if (System.console() != null) { // jANSI is the best lib. If there is no console it just segfaults the JVM process. Thanks! + AnsiConsole.systemInstall(); + } System.setErr(new LoggerPrintStream("STDERR", SYSERR)); System.setOut(new LoggerPrintStream("STDOUT", SYSOUT)); }