Skip to content

Commit

Permalink
Fix ToJsonString() in dispatch error log
Browse files Browse the repository at this point in the history
  • Loading branch information
Quahu committed Jul 29, 2024
1 parent 69859ca commit 6c3b560
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public async Task HandleDispatchAsync(object? sender, GatewayDispatchReceivedEve
}
catch (Exception ex)
{
Logger.LogError(ex, "An exception occurred while handling dispatch {0}.\n{1}", e.Name, e.Data?.ToString());
Logger.LogError(ex, "An exception occurred while handling dispatch {0}.\n{1}", e.Name, e.Data?.ToJsonString(JsonFormatting.Indented));
}
}

Expand Down

0 comments on commit 6c3b560

Please sign in to comment.