Skip to content

Commit 61fa02c

Browse files
committed
Fix incorrect logger class in ResumableAsyncHandler
1 parent f1df455 commit 61fa02c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/src/main/java/org/asynchttpclient/handler/resumable/ResumableAsyncHandler.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.asynchttpclient.RequestBuilder;
2121
import org.asynchttpclient.Response;
2222
import org.asynchttpclient.Response.ResponseBuilder;
23-
import org.asynchttpclient.handler.TransferCompletionHandler;
2423
import org.jetbrains.annotations.Nullable;
2524
import org.slf4j.Logger;
2625
import org.slf4j.LoggerFactory;
@@ -47,7 +46,7 @@
4746
* Beware that it registers a shutdown hook, that will cause a ClassLoader leak when used in an appserver and only redeploying the application.
4847
*/
4948
public class ResumableAsyncHandler implements AsyncHandler<Response> {
50-
private static final Logger logger = LoggerFactory.getLogger(ResumableAsyncHandler.class);
49+
private static final Logger LOGGER = LoggerFactory.getLogger(ResumableAsyncHandler.class);
5150
private static final ResumableIndexThread resumeIndexThread = new ResumableIndexThread();
5251
private static Map<String, Long> resumableIndex = Collections.emptyMap();
5352

@@ -125,7 +124,7 @@ public void onThrowable(Throwable t) {
125124
if (decoratedAsyncHandler != null) {
126125
decoratedAsyncHandler.onThrowable(t);
127126
} else {
128-
logger.debug("", t);
127+
LOGGER.debug("", t);
129128
}
130129
}
131130

0 commit comments

Comments
 (0)