|
|
@ -71,12 +71,15 @@ namespace NzbDrone.Web.App_Start
|
|
|
|
//if (request.IsLocal) { MiniProfiler.Start(); }
|
|
|
|
//if (request.IsLocal) { MiniProfiler.Start(); }
|
|
|
|
|
|
|
|
|
|
|
|
if (!EnviromentProvider.IsProduction || ProfilerHelper.Enabled())
|
|
|
|
if (!EnviromentProvider.IsProduction || ProfilerHelper.Enabled())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var requestPath = ((HttpApplication)sender).Request.AppRelativeCurrentExecutionFilePath.ToLower();
|
|
|
|
|
|
|
|
if (!requestPath.StartsWith("~/signalr") && !requestPath.EndsWith("notification/comet"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MiniProfiler.Start();
|
|
|
|
MiniProfiler.Start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: You can control who sees the profiling information
|
|
|
|
// TODO: You can control who sees the profiling information
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
context.AuthenticateRequest += (sender, e) =>
|
|
|
|
context.AuthenticateRequest += (sender, e) =>
|
|
|
|