mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Fix startup errors when double clicking jar (#2903)
This commit is contained in:
parent
b51fbefc48
commit
b3a97d1446
3 changed files with 18 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
From aec337e66237495db8935baae5b323a74ffc44f5 Mon Sep 17 00:00:00 2001
|
From 33ffa2db7d269531288bfa00c2cda19ae26060f4 Mon Sep 17 00:00:00 2001
|
||||||
From: Minecrell <minecrell@minecrell.net>
|
From: Minecrell <minecrell@minecrell.net>
|
||||||
Date: Fri, 9 Jun 2017 19:03:43 +0200
|
Date: Fri, 9 Jun 2017 19:03:43 +0200
|
||||||
Subject: [PATCH] Use TerminalConsoleAppender for console improvements
|
Subject: [PATCH] Use TerminalConsoleAppender for console improvements
|
||||||
|
@ -579,10 +579,10 @@ index 000000000..0694b2146
|
||||||
@@ -0,0 +1 @@
|
@@ -0,0 +1 @@
|
||||||
+log4j.skipJansi=true
|
+log4j.skipJansi=true
|
||||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||||
index 722ca8496..5a049e1b5 100644
|
index 722ca8496..620b9490e 100644
|
||||||
--- a/src/main/resources/log4j2.xml
|
--- a/src/main/resources/log4j2.xml
|
||||||
+++ b/src/main/resources/log4j2.xml
|
+++ b/src/main/resources/log4j2.xml
|
||||||
@@ -1,17 +1,17 @@
|
@@ -1,17 +1,14 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Configuration status="WARN" packages="com.mojang.util">
|
<Configuration status="WARN" packages="com.mojang.util">
|
||||||
<Appenders>
|
<Appenders>
|
||||||
|
@ -592,9 +592,9 @@ index 722ca8496..5a049e1b5 100644
|
||||||
<Queue name="ServerGuiConsole">
|
<Queue name="ServerGuiConsole">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
|
||||||
</Queue>
|
</Queue>
|
||||||
<Queue name="TerminalConsole">
|
- <Queue name="TerminalConsole">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
- <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
||||||
</Queue>
|
- </Queue>
|
||||||
+ <TerminalConsole name="TerminalConsole">
|
+ <TerminalConsole name="TerminalConsole">
|
||||||
+ <PatternLayout pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
+ <PatternLayout pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
||||||
+ </TerminalConsole>
|
+ </TerminalConsole>
|
||||||
|
@ -604,7 +604,7 @@ index 722ca8496..5a049e1b5 100644
|
||||||
<Policies>
|
<Policies>
|
||||||
<TimeBasedTriggeringPolicy />
|
<TimeBasedTriggeringPolicy />
|
||||||
<OnStartupTriggeringPolicy />
|
<OnStartupTriggeringPolicy />
|
||||||
@@ -24,10 +24,9 @@
|
@@ -24,10 +21,9 @@
|
||||||
<filters>
|
<filters>
|
||||||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
|
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
|
||||||
</filters>
|
</filters>
|
||||||
|
@ -617,5 +617,5 @@ index 722ca8496..5a049e1b5 100644
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
--
|
--
|
||||||
2.25.0.windows.1
|
2.24.0
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
From 02defb30546e8f70326f06dc850b15c518b0ec92 Mon Sep 17 00:00:00 2001
|
From c933a958f37c72234adcccd4f1d52e7f97dd3f49 Mon Sep 17 00:00:00 2001
|
||||||
From: Minecrell <minecrell@minecrell.net>
|
From: Minecrell <minecrell@minecrell.net>
|
||||||
Date: Thu, 21 Sep 2017 16:14:55 +0200
|
Date: Thu, 21 Sep 2017 16:14:55 +0200
|
||||||
Subject: [PATCH] Handle plugin prefixes using Log4J configuration
|
Subject: [PATCH] Handle plugin prefixes using Log4J configuration
|
||||||
|
@ -41,11 +41,11 @@ index fdca34346..6d77bbc5a 100644
|
||||||
|
|
||||||
public static int playerShuffle;
|
public static int playerShuffle;
|
||||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||||
index 5a049e1b5..4b3c0269e 100644
|
index 620b9490e..a8bdaaeaa 100644
|
||||||
--- a/src/main/resources/log4j2.xml
|
--- a/src/main/resources/log4j2.xml
|
||||||
+++ b/src/main/resources/log4j2.xml
|
+++ b/src/main/resources/log4j2.xml
|
||||||
@@ -8,10 +8,22 @@
|
@@ -5,10 +5,22 @@
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
|
||||||
</Queue>
|
</Queue>
|
||||||
<TerminalConsole name="TerminalConsole">
|
<TerminalConsole name="TerminalConsole">
|
||||||
- <PatternLayout pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
- <PatternLayout pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
||||||
|
@ -70,5 +70,5 @@ index 5a049e1b5..4b3c0269e 100644
|
||||||
<TimeBasedTriggeringPolicy />
|
<TimeBasedTriggeringPolicy />
|
||||||
<OnStartupTriggeringPolicy />
|
<OnStartupTriggeringPolicy />
|
||||||
--
|
--
|
||||||
2.25.0.windows.1
|
2.24.0
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
From e0d08cc7e4ca64bcb7afcc27cde365d838b6b155 Mon Sep 17 00:00:00 2001
|
From fceb95f6c30cba36961d90cf4f666003509b54a3 Mon Sep 17 00:00:00 2001
|
||||||
From: Minecrell <minecrell@minecrell.net>
|
From: Minecrell <minecrell@minecrell.net>
|
||||||
Date: Sat, 23 Sep 2017 21:07:20 +0200
|
Date: Sat, 23 Sep 2017 21:07:20 +0200
|
||||||
Subject: [PATCH] Disable logger prefix for various plugins bypassing the
|
Subject: [PATCH] Disable logger prefix for various plugins bypassing the
|
||||||
|
@ -11,10 +11,10 @@ log. Disable the logger prefix for these plugins so the messages
|
||||||
show up correctly.
|
show up correctly.
|
||||||
|
|
||||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||||
index 4b3c0269e..869bff4af 100644
|
index a8bdaaeaa..a9bb98765 100644
|
||||||
--- a/src/main/resources/log4j2.xml
|
--- a/src/main/resources/log4j2.xml
|
||||||
+++ b/src/main/resources/log4j2.xml
|
+++ b/src/main/resources/log4j2.xml
|
||||||
@@ -11,7 +11,8 @@
|
@@ -8,7 +8,8 @@
|
||||||
<PatternLayout>
|
<PatternLayout>
|
||||||
<LoggerNamePatternSelector defaultPattern="%highlightError{[%d{HH:mm:ss} %level]: [%logger] %minecraftFormatting{%msg}%n%xEx}">
|
<LoggerNamePatternSelector defaultPattern="%highlightError{[%d{HH:mm:ss} %level]: [%logger] %minecraftFormatting{%msg}%n%xEx}">
|
||||||
<!-- Log root, Minecraft, Mojang and Bukkit loggers without prefix -->
|
<!-- Log root, Minecraft, Mojang and Bukkit loggers without prefix -->
|
||||||
|
@ -24,7 +24,7 @@ index 4b3c0269e..869bff4af 100644
|
||||||
pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
pattern="%highlightError{[%d{HH:mm:ss} %level]: %minecraftFormatting{%msg}%n%xEx}" />
|
||||||
</LoggerNamePatternSelector>
|
</LoggerNamePatternSelector>
|
||||||
</PatternLayout>
|
</PatternLayout>
|
||||||
@@ -20,7 +21,8 @@
|
@@ -17,7 +18,8 @@
|
||||||
<PatternLayout>
|
<PatternLayout>
|
||||||
<LoggerNamePatternSelector defaultPattern="[%d{HH:mm:ss}] [%t/%level]: [%logger] %minecraftFormatting{%msg}{strip}%n">
|
<LoggerNamePatternSelector defaultPattern="[%d{HH:mm:ss}] [%t/%level]: [%logger] %minecraftFormatting{%msg}{strip}%n">
|
||||||
<!-- Log root, Minecraft, Mojang and Bukkit loggers without prefix -->
|
<!-- Log root, Minecraft, Mojang and Bukkit loggers without prefix -->
|
||||||
|
@ -35,5 +35,5 @@ index 4b3c0269e..869bff4af 100644
|
||||||
</LoggerNamePatternSelector>
|
</LoggerNamePatternSelector>
|
||||||
</PatternLayout>
|
</PatternLayout>
|
||||||
--
|
--
|
||||||
2.25.0.windows.1
|
2.24.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue