Skip to content

Commit

Permalink
Update: RestClientExec序列化错误输出日志
Browse files Browse the repository at this point in the history
  • Loading branch information
zkhssb committed Mar 9, 2023
1 parent c1a377c commit 62c82a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions QQChannelSharp/Extensions/RestClientExtension.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using QQChannelSharp.Dto;
using QQChannelSharp.Logger;
using QQChannelSharp.OpenApi;
using RestSharp;
using System.Text.Json;
Expand Down Expand Up @@ -41,6 +42,7 @@ public static async Task<HttpResult<TResult>> ExecAsync<TResult>(this RestClient
}
catch (JsonException ex)
{
Log.LogFatal("Json序列化错误", ex.ToString());
data = default;
error = new()
{
Expand Down

0 comments on commit 62c82a8

Please sign in to comment.