Fixed startup issue.

pull/3113/head
kay.one 13 years ago
parent 07458529f6
commit 390dfbdee8

@ -39,6 +39,8 @@ namespace NzbDrone.Core
{
BindKernel();
_kernel.Get<LogConfiguration>().Setup();
var mainConnectionString = _kernel.Get<Connection>().MainConnectionString;
MigrationsHelper.Run(mainConnectionString, true);

@ -54,6 +54,8 @@ namespace NzbDrone.Core
return dateTime.ToShortDateString();
}
//TODO: this should be moved to DiskProvider
public static ulong FreeDiskSpace(this DirectoryInfo directoryInfo)
{
ulong freeBytesAvailable;

@ -274,7 +274,7 @@ namespace NzbDrone.Core.Providers.Jobs
settings.Success = true;
sw.Stop();
logger.Debug("Job '{0}' successfully completed in {1:0}.{2} seconds.", queueItem, sw.Elapsed.TotalSeconds, sw.Elapsed.Milliseconds / 100,
logger.Debug("Job {0} successfully completed in {1:0}.{2} seconds.", queueItem, sw.Elapsed.TotalSeconds, sw.Elapsed.Milliseconds / 100,
sw.Elapsed.Seconds);
}
catch (ThreadAbortException)

@ -55,7 +55,6 @@ namespace NzbDrone.Web
protected override IKernel CreateKernel()
{
var kernel = CentralDispatch.NinjectKernel;
kernel.Get<LogConfiguration>().Setup();
Logger.Info("NZBDrone Starting up.");
CentralDispatch.DedicateToHost();

Loading…
Cancel
Save