From faf3b4579c0a881e57dd6dff9dd70d94b82b9c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Fri, 30 Jul 2021 17:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AE=8C=E6=95=B4=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Dns/UdpTable.cs | 3 +-- FastGithub.ReverseProxy/RequestLoggingMilldeware.cs | 2 +- FastGithub.ReverseProxy/ReverseProxyMiddleware.cs | 2 +- FastGithub.ReverseProxy/TcpTable.cs | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/FastGithub.Dns/UdpTable.cs b/FastGithub.Dns/UdpTable.cs index cae275c..97b3f29 100644 --- a/FastGithub.Dns/UdpTable.cs +++ b/FastGithub.Dns/UdpTable.cs @@ -36,8 +36,7 @@ namespace FastGithub.Dns { var proess = Process.GetProcessById(pid); proess.Kill(); - proess.WaitForExit(1000); - return true; + return proess.WaitForExit(1000); } catch (ArgumentException) { diff --git a/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs b/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs index afe4064..e838031 100644 --- a/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs +++ b/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs @@ -60,7 +60,7 @@ namespace FastGithub.ReverseProxy } else { - this.logger.LogError($"{message}{Environment.NewLine}{exception.Message}"); + this.logger.LogError($"{message}{Environment.NewLine}{exception}"); } } } diff --git a/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs b/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs index b0c451c..73d67cd 100644 --- a/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs +++ b/FastGithub.ReverseProxy/ReverseProxyMiddleware.cs @@ -105,7 +105,7 @@ namespace FastGithub.ReverseProxy await context.Response.WriteAsJsonAsync(new { error = error.ToString(), - message = errorFeature.Exception?.Message + message = errorFeature.Exception?.ToString() }); } } diff --git a/FastGithub.ReverseProxy/TcpTable.cs b/FastGithub.ReverseProxy/TcpTable.cs index 227e321..0ac1cca 100644 --- a/FastGithub.ReverseProxy/TcpTable.cs +++ b/FastGithub.ReverseProxy/TcpTable.cs @@ -36,8 +36,7 @@ namespace FastGithub.ReverseProxy { var proess = Process.GetProcessById(pid); proess.Kill(); - proess.WaitForExit(1000); - return true; + return proess.WaitForExit(1000); } catch (ArgumentException) {