mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Exceptions during Upgrade and AppStart are reported correctly.
This commit is contained in:
parent
ac568ef47b
commit
7a3f7bf67c
4 changed files with 27 additions and 10 deletions
|
@ -2,8 +2,6 @@
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using NLog;
|
||||
using NLog.Config;
|
||||
using NLog.Targets;
|
||||
using Ninject;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Update.Providers;
|
||||
|
@ -29,9 +27,10 @@ namespace NzbDrone.Update
|
|||
try
|
||||
{
|
||||
Console.WriteLine("Starting NzbDrone Update Client");
|
||||
|
||||
InitLoggers();
|
||||
_kernel = new StandardKernel();
|
||||
InitLoggers();
|
||||
|
||||
|
||||
|
||||
logger.Info("Updating NzbDrone to version {0}", _kernel.Get<EnviromentProvider>().Version);
|
||||
_kernel.Get<Program>().Start(args);
|
||||
|
@ -62,6 +61,8 @@ namespace NzbDrone.Update
|
|||
|
||||
private static void InitLoggers()
|
||||
{
|
||||
ReportingService.RestProvider = _kernel.Get<RestProvider>();
|
||||
|
||||
LogConfiguration.RegisterRemote();
|
||||
|
||||
LogConfiguration.RegisterConsoleLogger(LogLevel.Trace);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue