1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-03 01:55:33 +00:00

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 @@ public static void InitializeApp()
{
BindKernel();
_kernel.Get<LogConfiguration>().Setup();
var mainConnectionString = _kernel.Get<Connection>().MainConnectionString;
MigrationsHelper.Run(mainConnectionString, true);

View file

@ -54,6 +54,8 @@ public static string ToBestDateString(this DateTime dateTime)
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 @@ private void Execute(JobQueueItem queueItem)
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 @@ protected override void OnApplicationStarted()
protected override IKernel CreateKernel()
{
var kernel = CentralDispatch.NinjectKernel;
kernel.Get<LogConfiguration>().Setup();
Logger.Info("NZBDrone Starting up.");
CentralDispatch.DedicateToHost();