mirror of https://github.com/Radarr/Radarr
fixed /api . responds with profiles.
This commit is contained in:
parent
1bd6c4a93c
commit
5fb1f4902f
|
@ -23,7 +23,12 @@ namespace NzbDrone.Api
|
|||
_logger = LogManager.GetCurrentClassLogger();
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
protected override void ApplicationStartup(ILifetimeScope container, IPipelines pipelines)
|
||||
{
|
||||
InitializeAutomapper();
|
||||
}
|
||||
|
||||
public static void InitializeAutomapper()
|
||||
{
|
||||
//QualityProfiles
|
||||
Mapper.CreateMap<QualityProfileModel, QualityProfile>()
|
||||
|
|
|
@ -131,6 +131,11 @@ namespace NzbDrone.Core.Datastore
|
|||
}
|
||||
catch (SqlCeException e)
|
||||
{
|
||||
if (e.Message.Contains("file sharing violation"))
|
||||
{
|
||||
logger.WarnException("file is in use. skipping.", e);
|
||||
return;
|
||||
}
|
||||
logger.WarnException(
|
||||
"Safe recovery failed. will attempts a more aggressive strategy. might case loss of data.",
|
||||
e);
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NLog.Config;
|
||||
using NzbDrone.Common;
|
||||
|
||||
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.Logging), "PreStart")]
|
||||
|
@ -15,7 +13,7 @@ namespace NzbDrone.Web.App_Start
|
|||
{
|
||||
var environmentProvider = new EnvironmentProvider();
|
||||
|
||||
LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
|
||||
//LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
|
||||
|
||||
LogConfiguration.RegisterUdpLogger();
|
||||
LogConfiguration.RegisterRemote();
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
<remove name="UrlRoutingHandler" />
|
||||
<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="Nancy" verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />
|
||||
</handlers>
|
||||
<directoryBrowse enabled="false" />
|
||||
<staticContent>
|
||||
|
|
Loading…
Reference in New Issue