From 952555495e4c496823ce0ca1ce05d9c3064a72d5 Mon Sep 17 00:00:00 2001 From: HojouFotytu <36724681+HojouFotytu@users.noreply.github.com> Date: Sat, 16 Nov 2019 10:19:02 +0900 Subject: [PATCH] ignore error lastruntimesummary.json in use --- Monitor/Pages/Error.cshtml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Monitor/Pages/Error.cshtml.cs b/Monitor/Pages/Error.cshtml.cs index ccf6208..e692535 100644 --- a/Monitor/Pages/Error.cshtml.cs +++ b/Monitor/Pages/Error.cshtml.cs @@ -19,7 +19,10 @@ namespace Monitor.Pages RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; - Logger.WriteException(exceptionFeature.Error, "An error occurred whilst requesting " + exceptionFeature.Path); + string errorString = exceptionFeature.Error.ToString(); + if (!errorString.Contains("is being used")) { + Logger.WriteException(exceptionFeature.Error, "An error occurred whilst requesting " + exceptionFeature.Path); + } } } }