Discard MiniProfiler results when not in debug mode

This commit is contained in:
Ronald Barendse
2019-12-11 09:26:31 +01:00
parent 6f67105645
commit c845f5d8c5

View File

@@ -82,7 +82,7 @@ namespace Umbraco.Web.Profiling
if (isBootRequest)
_provider.EndBootRequest();
if (isBootRequest || ShouldProfile(sender))
Stop();
Stop(!GlobalSettings.DebugMode);
}
private bool ShouldProfile(object sender)