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) {