Profiler can be enabled via config file.

This commit is contained in:
Mark McDowall 2011-12-13 18:31:20 -08:00
commit 28259bc254
5 changed files with 29 additions and 2 deletions

View file

@ -5,6 +5,7 @@ using MvcMiniProfiler;
using MvcMiniProfiler.MVCHelpers;
using Microsoft.Web.Infrastructure.DynamicModuleHelper;
using NzbDrone.Common;
using NzbDrone.Web.Helpers;
//using System.Data;
//using System.Data.Entity;
@ -69,7 +70,7 @@ namespace NzbDrone.Web.App_Start
// so authenticated users are always profiled
//if (request.IsLocal) { MiniProfiler.Start(); }
if (!EnviromentProvider.IsProduction)
if (!EnviromentProvider.IsProduction || ProfilerHelper.Enabled())
{
MiniProfiler.Start();
}