mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -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
19
NzbDrone.Web/Helpers/ProfilerHelper.cs
Normal file
19
NzbDrone.Web/Helpers/ProfilerHelper.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Web.Helpers
|
||||
{
|
||||
public static class ProfilerHelper
|
||||
{
|
||||
public static bool Enabled()
|
||||
{
|
||||
var enviromentProvider = new EnviromentProvider();
|
||||
var configFileProvider = new ConfigFileProvider(enviromentProvider);
|
||||
|
||||
return configFileProvider.EnableProfiler;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue