From 79b3a22c9ab23d9b0282469e61f186a40e5ceb12 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 13 Nov 2011 12:42:12 -0800 Subject: [PATCH] Fixed some exception logging where exceptions weren't logged. --- NzbDrone.Common/LogConfiguration.cs | 2 -- NzbDrone.Core/CentralDispatch.cs | 2 +- NzbDrone.Update/Program.cs | 2 +- NzbDrone.Update/Providers/UpdateProvider.cs | 2 +- NzbDrone/Providers/MonitoringProvider.cs | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/NzbDrone.Common/LogConfiguration.cs b/NzbDrone.Common/LogConfiguration.cs index f23929611..705c35f5b 100644 --- a/NzbDrone.Common/LogConfiguration.cs +++ b/NzbDrone.Common/LogConfiguration.cs @@ -90,8 +90,6 @@ namespace NzbDrone.Common LogManager.Configuration.Reload(); LogManager.ReconfigExistingLoggers(); sw.Stop(); - - Console.WriteLine("Reload: " + sw.Elapsed.TotalSeconds); } } } diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index a3336f85e..1d8e7d0a2 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -137,7 +137,7 @@ namespace NzbDrone.Core } catch (Exception e) { - Logger.Fatal(e); + Logger.FatalException("An error has occurred while dedicating to host.", e); } } diff --git a/NzbDrone.Update/Program.cs b/NzbDrone.Update/Program.cs index ecb1830ca..6816547ec 100644 --- a/NzbDrone.Update/Program.cs +++ b/NzbDrone.Update/Program.cs @@ -43,7 +43,7 @@ namespace NzbDrone.Update } catch (Exception e) { - logger.Fatal("An error has occurred while applying update.", e); + logger.FatalException("An error has occurred while applying update package.", e); } } diff --git a/NzbDrone.Update/Providers/UpdateProvider.cs b/NzbDrone.Update/Providers/UpdateProvider.cs index 275419e0e..004eab575 100644 --- a/NzbDrone.Update/Providers/UpdateProvider.cs +++ b/NzbDrone.Update/Providers/UpdateProvider.cs @@ -78,7 +78,7 @@ namespace NzbDrone.Update.Providers catch (Exception e) { RollBack(targetFolder); - logger.Fatal("Failed to copy upgrade package to target folder.", e); + logger.FatalException("Failed to copy upgrade package to target folder.", e); } finally { diff --git a/NzbDrone/Providers/MonitoringProvider.cs b/NzbDrone/Providers/MonitoringProvider.cs index 88ff9e887..f28f44230 100644 --- a/NzbDrone/Providers/MonitoringProvider.cs +++ b/NzbDrone/Providers/MonitoringProvider.cs @@ -117,7 +117,7 @@ namespace NzbDrone.Providers }.Submit(); } - Logger.Fatal("EPIC FAIL: {0}", excepion); + Logger.FatalException("EPIC FAIL: {0}", excepion); } } } \ No newline at end of file