Skip to content

Commit 61d62a8

Browse files
committed
expose the exception and its stacktrace to the diagnostic so it can be logged
1 parent bbeec9f commit 61d62a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HotChocolate/Core/src/Subscriptions.Postgres/PostgresChannelWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private async Task HandleMessage(NpgsqlConnection connection, CancellationToken
120120
}
121121
catch (Exception ex)
122122
{
123-
var msg = string.Format(ChannelWriter_FailedToSend, messages.Count, ex.Message);
123+
var msg = string.Format(ChannelWriter_FailedToSend, messages.Count, ex.ToString());
124124
_diagnosticEvents.ProviderInfo(msg);
125125

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

0 commit comments

Comments
 (0)