mirror of
https://github.com/Radarr/Radarr
synced 2024-12-24 08:52:38 +00:00
fixed /api . responds with profiles.
This commit is contained in:
parent
1bd6c4a93c
commit
5fb1f4902f
4 changed files with 12 additions and 5 deletions
|
@ -23,7 +23,12 @@ public Bootstrapper()
|
||||||
_logger = LogManager.GetCurrentClassLogger();
|
_logger = LogManager.GetCurrentClassLogger();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Initialize()
|
protected override void ApplicationStartup(ILifetimeScope container, IPipelines pipelines)
|
||||||
|
{
|
||||||
|
InitializeAutomapper();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void InitializeAutomapper()
|
||||||
{
|
{
|
||||||
//QualityProfiles
|
//QualityProfiles
|
||||||
Mapper.CreateMap<QualityProfileModel, QualityProfile>()
|
Mapper.CreateMap<QualityProfileModel, QualityProfile>()
|
||||||
|
|
|
@ -131,6 +131,11 @@ private static void RepairDatabase(string connectionString)
|
||||||
}
|
}
|
||||||
catch (SqlCeException e)
|
catch (SqlCeException e)
|
||||||
{
|
{
|
||||||
|
if (e.Message.Contains("file sharing violation"))
|
||||||
|
{
|
||||||
|
logger.WarnException("file is in use. skipping.", e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
logger.WarnException(
|
logger.WarnException(
|
||||||
"Safe recovery failed. will attempts a more aggressive strategy. might case loss of data.",
|
"Safe recovery failed. will attempts a more aggressive strategy. might case loss of data.",
|
||||||
e);
|
e);
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NLog.Config;
|
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
|
|
||||||
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.Logging), "PreStart")]
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.Logging), "PreStart")]
|
||||||
|
@ -15,7 +13,7 @@ public static void PreStart()
|
||||||
{
|
{
|
||||||
var environmentProvider = new EnvironmentProvider();
|
var environmentProvider = new EnvironmentProvider();
|
||||||
|
|
||||||
LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
|
//LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
|
||||||
|
|
||||||
LogConfiguration.RegisterUdpLogger();
|
LogConfiguration.RegisterUdpLogger();
|
||||||
LogConfiguration.RegisterRemote();
|
LogConfiguration.RegisterRemote();
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
<remove name="UrlRoutingHandler" />
|
<remove name="UrlRoutingHandler" />
|
||||||
<add name="MvcHttpHandler" preCondition="integratedMode" verb="" path=".mvc" type="System.Web.Mvc.MvcHttpHandler" />
|
<add name="MvcHttpHandler" preCondition="integratedMode" verb="" path=".mvc" type="System.Web.Mvc.MvcHttpHandler" />
|
||||||
<add name="CassetteHttpHandler" path="cassette.axd" preCondition="integratedMode" verb="*" allowPathInfo="true" type="Cassette.Aspnet.CassetteHttpHandler, Cassette.Aspnet" />
|
<add name="CassetteHttpHandler" path="cassette.axd" preCondition="integratedMode" verb="*" allowPathInfo="true" type="Cassette.Aspnet.CassetteHttpHandler, Cassette.Aspnet" />
|
||||||
<add name="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
|
|
||||||
</handlers>
|
</handlers>
|
||||||
<directoryBrowse enabled="false" />
|
<directoryBrowse enabled="false" />
|
||||||
<staticContent>
|
<staticContent>
|
||||||
|
|
Loading…
Reference in a new issue