mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-09-28 06:27:28 +02:00
25ecd402f3
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing BungeeCord Changes: 1a807731 #3567: Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.2 to 3.6.3 772ad995 #3566: Bump actions/setup-java from 3 to 4 2431c40a #3562: Bump io.netty:netty-bom from 4.1.100.Final to 4.1.101.Final 8144ae8d #3555: Bump com.mysql:mysql-connector-j from 8.1.0 to 8.2.0 0757c39a Attempt upgrade of resolver libraries
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From 745a896d569b83098283b675577e16baf2255c0a Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Tue, 15 Sep 2020 18:11:49 +0100
|
|
Subject: [PATCH] Add the ability to generate decoder traces for debugging
|
|
|
|
|
|
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/FastDecoderException.java b/protocol/src/main/java/net/md_5/bungee/protocol/FastDecoderException.java
|
|
index 2583aa2c..334d5054 100644
|
|
--- a/protocol/src/main/java/net/md_5/bungee/protocol/FastDecoderException.java
|
|
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/FastDecoderException.java
|
|
@@ -4,6 +4,7 @@ import io.netty.handler.codec.DecoderException;
|
|
|
|
public class FastDecoderException extends DecoderException {
|
|
|
|
+ private static final boolean PROCESS_TRACES = Boolean.getBoolean("waterfall.decoder-traces"); // Waterfall
|
|
public FastDecoderException(String message, Throwable cause) {
|
|
super(message, cause);
|
|
}
|
|
@@ -15,12 +16,22 @@ public class FastDecoderException extends DecoderException {
|
|
@Override
|
|
public Throwable initCause(Throwable cause)
|
|
{
|
|
+ // Waterfall start
|
|
+ if (PROCESS_TRACES) {
|
|
+ return super.initCause(cause);
|
|
+ }
|
|
+ // Waterfall end
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public Throwable fillInStackTrace()
|
|
{
|
|
+ // Waterfall start
|
|
+ if (PROCESS_TRACES) {
|
|
+ return super.fillInStackTrace();
|
|
+ }
|
|
+ // Waterfall end
|
|
return this;
|
|
}
|
|
}
|
|
--
|
|
2.43.0
|
|
|