1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Miniprofile is now back on for remote requests.

This commit is contained in:
kay.one 2011-11-25 18:27:52 -08:00
parent 910efb5941
commit 596056289e
2 changed files with 6 additions and 7 deletions

View File

@ -10,11 +10,8 @@
//using MvcMiniProfiler.Data.Linq2Sql;
[assembly: WebActivator.PreApplicationStartMethod(
typeof(NzbDrone.Web.App_Start.MiniProfilerPackage), "PreStart")]
[assembly: WebActivator.PostApplicationStartMethod(
typeof(NzbDrone.Web.App_Start.MiniProfilerPackage), "PostStart")]
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.MiniProfilerPackage), "PreStart")]
[assembly: WebActivator.PostApplicationStartMethod(typeof(NzbDrone.Web.App_Start.MiniProfilerPackage), "PostStart")]
namespace NzbDrone.Web.App_Start
@ -65,10 +62,11 @@ public void Init(HttpApplication context)
{
context.BeginRequest += (sender, e) =>
{
var request = ((HttpApplication)sender).Request;
//var request = ((HttpApplication)sender).Request;
//TODO: By default only local requests are profiled, optionally you can set it up
// so authenticated users are always profiled
if (request.IsLocal) { MiniProfiler.Start(); }
//if (request.IsLocal) { MiniProfiler.Start(); }
MiniProfiler.Start();
};

View File

@ -18,6 +18,7 @@ body
width: 85%;
margin-left: auto;
min-width: 800px;
max-width: 1400px;
}
h1, h2, h3, h4, h5, h6