mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
added common global exception handler.
This commit is contained in:
parent
89082ea94e
commit
53c32fbe10
4 changed files with 38 additions and 12 deletions
|
@ -27,10 +27,9 @@ namespace NzbDrone.Update
|
|||
try
|
||||
{
|
||||
Console.WriteLine("Starting NzbDrone Update Client");
|
||||
GlobalExceptionHandlers.Register();
|
||||
|
||||
new LogglyTarget(new EnvironmentProvider()).Register(LogLevel.Debug);
|
||||
|
||||
ExceptronTarget.Register();
|
||||
|
||||
_container = UpdateContainerBuilder.Build();
|
||||
|
||||
logger.Info("Updating NzbDrone to version {0}", _container.Resolve<IEnvironmentProvider>().Version);
|
||||
|
@ -40,7 +39,6 @@ namespace NzbDrone.Update
|
|||
{
|
||||
logger.FatalException("An error has occurred while applying update package.", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void Start(string[] args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue