Fixed startup issue.

This commit is contained in:
kay.one 2011-11-06 22:38:07 -08:00
parent 07458529f6
commit 390dfbdee8
4 changed files with 5 additions and 2 deletions

View File

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

View File

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

View File

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

View File

@ -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();