Skip to content

Commit

Permalink
expose the exception and its stacktrace to the diagnostic so it can b…
Browse files Browse the repository at this point in the history
…e logged
  • Loading branch information
williamdenton committed Jun 7, 2024
1 parent bbeec9f commit 61d62a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private async Task HandleMessage(NpgsqlConnection connection, CancellationToken
}
catch (Exception ex)
{
var msg = string.Format(ChannelWriter_FailedToSend, messages.Count, ex.Message);
var msg = string.Format(ChannelWriter_FailedToSend, messages.Count, ex.ToString());
_diagnosticEvents.ProviderInfo(msg);

// if we cannot send the message we put it back into the channel
Expand Down

0 comments on commit 61d62a8

Please sign in to comment.