Skip to content

Commit b93f54b

Browse files
committed
Add more logging information
1 parent 126b7e2 commit b93f54b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyConnectListener.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,18 @@ public final void operationComplete(ChannelFuture f) throws Exception {
6767
} else {
6868
Throwable cause = f.getCause();
6969

70+
logger.debug("Trying to recover a dead cached channel {} with a retry value of {} ", f.getChannel(), future.canRetry());
7071
if (future.canRetry() && cause != null && (NettyAsyncHttpProvider.abortOnDisconnectException(cause)
7172
|| ClosedChannelException.class.isAssignableFrom(cause.getClass())
7273
|| future.getState() != NettyResponseFuture.STATE.NEW)) {
73-
74+
75+
logger.debug("Retrying {} ", nettyRequest);
7476
if (future.provider().remotelyClosed(f.getChannel(), future)) {
7577
return;
7678
}
7779
}
7880

79-
logger.warn("Connect exception: {}", cause);
81+
logger.warn("Failed to recover from exception: {} with channel {}", cause, f.getChannel());
8082

8183
ConnectException e = new ConnectException(f.getCause() != null ? cause.getMessage() : future.getURI().toString());
8284
if (cause != null) {

0 commit comments

Comments
 (0)