mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-03 01:55:33 +00:00
Fixed startup issue.
This commit is contained in:
parent
07458529f6
commit
390dfbdee8
4 changed files with 5 additions and 2 deletions
|
@ -39,6 +39,8 @@ public static void InitializeApp()
|
|||
{
|
||||
BindKernel();
|
||||
|
||||
_kernel.Get<LogConfiguration>().Setup();
|
||||
|
||||
var mainConnectionString = _kernel.Get<Connection>().MainConnectionString;
|
||||
|
||||
MigrationsHelper.Run(mainConnectionString, true);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue