From df065089c3c0288c24ab1740430f353283cb95d0 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Tue, 17 Aug 2021 23:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=99=8D=E7=BA=A7TaskCancele?= =?UTF-8?q?dException?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.ReverseProxy/RequestLoggingMilldeware.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs b/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs index 38423d2..8d9f379 100644 --- a/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs +++ b/FastGithub.ReverseProxy/RequestLoggingMilldeware.cs @@ -53,7 +53,7 @@ namespace FastGithub.ReverseProxy } var exception = context.GetForwarderErrorFeature()?.Exception; - if (exception == null) + if (exception == null || exception is OperationCanceledException) { this.logger.LogInformation(message); }