How can I log any exception that occurs in Upstreams? #1920
Unanswered
unosbaghaie
asked this question in
Q&A
Replies: 1 comment
-
@ggnaegi I guess Delegating Handler should help, right? public class FakeHandler : DelegatingHandler
{
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken token)
{
try
{
return await base.SendAsync(request, token);
}
catch (Exception e)
{
// Log
throw;
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
How can I log any exception that occurs in Upstreams ?
Beta Was this translation helpful? Give feedback.
All reactions