From 3e6830e1736a68d2b0a71a21eaf84e6726170424 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Mon, 30 Nov 2020 10:18:11 +0000 Subject: [PATCH] Exit out of function but set to repeat if we are unable to read the file (perhaps a file lock) --- src/Umbraco.Web/Telemetry/ReportSiteTask.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web/Telemetry/ReportSiteTask.cs b/src/Umbraco.Web/Telemetry/ReportSiteTask.cs index a9c6ea7bde..2f6c348414 100644 --- a/src/Umbraco.Web/Telemetry/ReportSiteTask.cs +++ b/src/Umbraco.Web/Telemetry/ReportSiteTask.cs @@ -61,6 +61,9 @@ namespace Umbraco.Web.Telemetry // Silently swallow ex - but lets log it (ReadAllText throws a ton of different types of ex) // Hence the use of general exception type _logger.Error(ex, "Error in reading file contents of telemetry marker file found at '{filePath}'", telemetricsFilePath); + + // Exit out early, but mark this task to be repeated in case its a file lock so it can be rechecked the next time round + return true; }