Skip to content

Commit

Permalink
Remove useless toString in Timeout Filter (#10531)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ authored Sep 2, 2022
1 parent b5b478c commit 81fabc7
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import org.apache.dubbo.rpc.RpcException;
import org.apache.dubbo.rpc.TimeoutCountDown;

import java.util.Arrays;

import static org.apache.dubbo.common.constants.CommonConstants.TIME_COUNTDOWN_KEY;

/**
Expand All @@ -54,9 +52,8 @@ public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invoca
if (countDown.isExpired()) {
((AppResponse) appResponse).clear(); // clear response in case of timeout.
if (logger.isWarnEnabled()) {
logger.warn("invoke timed out. method: " + invocation.getMethodName() + " arguments: " +
Arrays.toString(invocation.getArguments()) + " , url is " + invoker.getUrl() +
", invoke elapsed " + countDown.elapsedMillis() + " ms.");
logger.warn("invoke timed out. method: " + invocation.getMethodName() +
" url is " + invoker.getUrl() + ", invoke elapsed " + countDown.elapsedMillis() + " ms.");
}
}
}
Expand Down

0 comments on commit 81fabc7

Please sign in to comment.