core: Fix FINE deadline logging

We were logging when withDeadline() was used, not when the Context was used. As
discovered while looking at https://stackoverflow.com/q/56593692/4690866 .

In e19e8f7d updateTimeoutHeaders was removed and logIfContextNarrowedTimeout
was called directly. However, the two methods had reverse ordering of
callDeadine/outerCallDeadline and the caller did not get their arguments
swapped.
This commit is contained in:
Eric Anderson 2019-06-14 08:47:37 -07:00
parent 5f4bc15f83
commit b836b36777
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ final class ClientCallImpl<ReqT, RespT> extends ClientCall<ReqT, RespT> {
boolean deadlineExceeded = effectiveDeadline != null && effectiveDeadline.isExpired();
if (!deadlineExceeded) {
logIfContextNarrowedTimeout(
effectiveDeadline, callOptions.getDeadline(), context.getDeadline());
effectiveDeadline, context.getDeadline(), callOptions.getDeadline());
if (retryEnabled) {
stream = clientTransportProvider.newRetriableStream(method, callOptions, headers, context);
} else {