mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Profiler can be enabled via config file.
This commit is contained in:
parent
f56bf62991
commit
28259bc254
5 changed files with 29 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue