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;