Fixed startup issue.
This commit is contained in:
parent
07458529f6
commit
390dfbdee8
|
@ -39,6 +39,8 @@ namespace NzbDrone.Core
|
||||||
{
|
{
|
||||||
BindKernel();
|
BindKernel();
|
||||||
|
|
||||||
|
_kernel.Get<LogConfiguration>().Setup();
|
||||||
|
|
||||||
var mainConnectionString = _kernel.Get<Connection>().MainConnectionString;
|
var mainConnectionString = _kernel.Get<Connection>().MainConnectionString;
|
||||||
|
|
||||||
MigrationsHelper.Run(mainConnectionString, true);
|
MigrationsHelper.Run(mainConnectionString, true);
|
||||||
|
|
|
@ -54,6 +54,8 @@ namespace NzbDrone.Core
|
||||||
return dateTime.ToShortDateString();
|
return dateTime.ToShortDateString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//TODO: this should be moved to DiskProvider
|
||||||
public static ulong FreeDiskSpace(this DirectoryInfo directoryInfo)
|
public static ulong FreeDiskSpace(this DirectoryInfo directoryInfo)
|
||||||
{
|
{
|
||||||
ulong freeBytesAvailable;
|
ulong freeBytesAvailable;
|
||||||
|
|
|
@ -274,7 +274,7 @@ namespace NzbDrone.Core.Providers.Jobs
|
||||||
settings.Success = true;
|
settings.Success = true;
|
||||||
|
|
||||||
sw.Stop();
|
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);
|
sw.Elapsed.Seconds);
|
||||||
}
|
}
|
||||||
catch (ThreadAbortException)
|
catch (ThreadAbortException)
|
||||||
|
|
|
@ -55,7 +55,6 @@ namespace NzbDrone.Web
|
||||||
protected override IKernel CreateKernel()
|
protected override IKernel CreateKernel()
|
||||||
{
|
{
|
||||||
var kernel = CentralDispatch.NinjectKernel;
|
var kernel = CentralDispatch.NinjectKernel;
|
||||||
kernel.Get<LogConfiguration>().Setup();
|
|
||||||
Logger.Info("NZBDrone Starting up.");
|
Logger.Info("NZBDrone Starting up.");
|
||||||
|
|
||||||
CentralDispatch.DedicateToHost();
|
CentralDispatch.DedicateToHost();
|
||||||
|
|
Loading…
Reference in New Issue