1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-23 16:32:48 +00:00

fixed /api . responds with profiles.

This commit is contained in:
kay.one 2013-01-19 17:00:20 -08:00
parent 1bd6c4a93c
commit 5fb1f4902f
4 changed files with 12 additions and 5 deletions

View file

@ -23,7 +23,12 @@ public Bootstrapper()
_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>()

View file

@ -131,6 +131,11 @@ private static void RepairDatabase(string connectionString)
}
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);

View file

@ -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 @@ public static void PreStart()
{
var environmentProvider = new EnvironmentProvider();
LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
//LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
LogConfiguration.RegisterUdpLogger();
LogConfiguration.RegisterRemote();

View file

@ -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>