Skip to content

Commit

Permalink
Make it clear we're processing response HEADERS
Browse files Browse the repository at this point in the history
Fixes: dotnet/extensions#1121

Just a small tweak to logging to make it clear that this is the elapsed
time to get the response headers.


Commit migrated from dotnet/extensions@846de6f
  • Loading branch information
rynowak committed Nov 26, 2019
1 parent 3ef91e7 commit cfceced
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static class EventIds
private static readonly Action<ILogger, double, HttpStatusCode, Exception> _requestEnd = LoggerMessage.Define<double, HttpStatusCode>(
LogLevel.Information,
EventIds.RequestEnd,
"Received HTTP response after {ElapsedMilliseconds}ms - {StatusCode}");
"Received HTTP response headers after {ElapsedMilliseconds}ms - {StatusCode}");

public static void RequestStart(ILogger logger, HttpRequestMessage request)
{
Expand Down Expand Up @@ -100,4 +100,4 @@ public static void RequestEnd(ILogger logger, HttpResponseMessage response, Time
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ public Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuil
};
}
}
}
}

0 comments on commit cfceced

Please sign in to comment.