From deffc27ae1809528300029b71bc5f754fa126417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3?= Date: Mon, 16 Sep 2024 18:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99Desktop=E7=9A=84=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A2=9E=E5=8A=A0=E8=BF=9C=E7=A8=8B=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=88=96=E6=9C=AC=E5=9C=B0=E6=A8=A1=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Desktop/NetWork/Get.cs | 4 ++-- Desktop/NetWork/Post.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Desktop/NetWork/Get.cs b/Desktop/NetWork/Get.cs index 20fbf327..02afc2f9 100644 --- a/Desktop/NetWork/Get.cs +++ b/Desktop/NetWork/Get.cs @@ -60,11 +60,11 @@ public static T GetBody(string url, Dictionary _dic = null) if (First) { First = false; - Log.Warn(nameof(GetBody), $"发起Get请求出错,URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex); + Log.Warn(nameof(GetBody), $"发起Get请求出错({(Core.Config.Core_RunConfig._DesktopRemoteServer?"远程模式":"本地模式")}),URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex); } else { - Log.Warn(nameof(GetBody), $"发起Get请求出错,URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex, false); + Log.Warn(nameof(GetBody), $"发起Get请求出错({(Core.Config.Core_RunConfig._DesktopRemoteServer?"远程模式":"本地模式")}),URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex, false); } return default; diff --git a/Desktop/NetWork/Post.cs b/Desktop/NetWork/Post.cs index 9e0bea4f..9f93633c 100644 --- a/Desktop/NetWork/Post.cs +++ b/Desktop/NetWork/Post.cs @@ -67,16 +67,16 @@ public class Post if (First) { First = false; - Log.Warn(nameof(PostBody), $"发起Post请求出错,URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex); + Log.Warn(nameof(PostBody), $"发起Post请求出错({(Core.Config.Core_RunConfig._DesktopRemoteServer?"远程模式":"本地模式")}),URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex); } else { - Log.Warn(nameof(PostBody), $"发起Post请求出错,URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex, false); + Log.Warn(nameof(PostBody), $"发起Post请求出错({(Core.Config.Core_RunConfig._DesktopRemoteServer?"远程模式":"本地模式")}),URL:[{url}],错误堆栈:\r\n{ex.ToString()}", ex, false); } if (ex is TaskCanceledException) { - Log.Warn(nameof(PostBody), $"发起Post请求超时,URL:[{url}]", ex); + Log.Warn(nameof(PostBody), $"发起Post请求超时({(Core.Config.Core_RunConfig._DesktopRemoteServer?"远程模式":"本地模式")}),URL:[{url}]", ex); } return default;