Skip to content

Commit f95a4e3

Browse files
author
Stephane Landelle
committed
Made logger static to improve performance. Fixed logger name, back port AsyncHttpClient#749
1 parent 22628c2 commit f95a4e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/main/java/org/asynchttpclient/AsyncCompletionHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
public abstract class AsyncCompletionHandler<T> implements AsyncHandler<T>, ProgressAsyncHandler<T> {
3030

31-
private static final Logger log = LoggerFactory.getLogger(AsyncCompletionHandler.class);
31+
private static final Logger LOGGER = LoggerFactory.getLogger(AsyncCompletionHandler.class);
3232
private final Response.ResponseBuilder builder = new Response.ResponseBuilder();
3333

3434
/**
@@ -67,7 +67,7 @@ public final T onCompleted() throws Exception {
6767
* {@inheritDoc}
6868
*/
6969
public void onThrowable(Throwable t) {
70-
log.debug(t.getMessage(), t);
70+
LOGGER.debug(t.getMessage(), t);
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)