Do not log that marker file exists already during the serval install boot cycles

This commit is contained in:
Warren Buckley
2020-11-10 08:25:32 +00:00
parent 69b3feb0ea
commit 191d86e27c

View File

@@ -31,6 +31,11 @@ namespace Umbraco.Web.Telemetry
_logger.Warn<TelemetryMarkerComponent>("When upgrading the anonymous telemetry file already existsed on disk at {filePath}", telemetricsFilePath);
return;
}
else if (_runtime.Level == RuntimeLevel.Install && File.Exists(telemetricsFilePath))
{
// No need to log for when level is install if file exists (As this component hit several times during install process)
return;
}
// We are a clean install or an upgrade without the marker file
// Generate GUID