Skip to content

Commit 796f8af

Browse files
committed
fix: 在JSON反序列化错误日志中添加错误信息描述
增强异常日志的可读性,通过添加描述性文本便于快速定位问题。
1 parent 28065ea commit 796f8af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GameFrameX.Foundation.Http.Normalization/HttpJsonResultHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static class HttpJsonResultHelper
4747
catch (Exception e)
4848
{
4949
// 捕获并输出异常信息
50-
LogHelper.Fatal(e);
50+
LogHelper.Fatal(e, "JSON Deserialize Error {error}");
5151
}
5252

5353
return resultData; // 返回结果数据

0 commit comments

Comments
 (0)