From d5eb37c7a6a5ba82d53411960629f1662b6e562a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 1 Jun 2013 17:46:11 +1000 Subject: [PATCH] Add debug to tryFailure --- .../java/net/md_5/bungee/netty/ReusableChannelPromise.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java b/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java index f420909ab..ae985f18b 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java @@ -7,7 +7,9 @@ import io.netty.util.concurrent.GenericFutureListener; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; +import java.util.logging.Level; import lombok.RequiredArgsConstructor; +import net.md_5.bungee.api.ProxyServer; @RequiredArgsConstructor public class ReusableChannelPromise implements ChannelPromise @@ -174,6 +176,7 @@ public class ReusableChannelPromise implements ChannelPromise @Override public boolean tryFailure(Throwable cause) { - throw new UnsupportedOperationException( "Not supported yet." ); + ProxyServer.getInstance().getLogger().log( Level.WARNING, "Exception in tryFailure(..)", cause ); + return true; } }