Fixed some exception logging where exceptions weren't logged.

This commit is contained in:
kay.one 2011-11-13 12:42:12 -08:00
parent 883dffca80
commit 79b3a22c9a
5 changed files with 4 additions and 6 deletions

View File

@ -90,8 +90,6 @@ namespace NzbDrone.Common
LogManager.Configuration.Reload(); LogManager.Configuration.Reload();
LogManager.ReconfigExistingLoggers(); LogManager.ReconfigExistingLoggers();
sw.Stop(); sw.Stop();
Console.WriteLine("Reload: " + sw.Elapsed.TotalSeconds);
} }
} }
} }

View File

@ -137,7 +137,7 @@ namespace NzbDrone.Core
} }
catch (Exception e) catch (Exception e)
{ {
Logger.Fatal(e); Logger.FatalException("An error has occurred while dedicating to host.", e);
} }
} }

View File

@ -43,7 +43,7 @@ namespace NzbDrone.Update
} }
catch (Exception e) catch (Exception e)
{ {
logger.Fatal("An error has occurred while applying update.", e); logger.FatalException("An error has occurred while applying update package.", e);
} }
} }

View File

@ -78,7 +78,7 @@ namespace NzbDrone.Update.Providers
catch (Exception e) catch (Exception e)
{ {
RollBack(targetFolder); 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 finally
{ {

View File

@ -117,7 +117,7 @@ namespace NzbDrone.Providers
}.Submit(); }.Submit();
} }
Logger.Fatal("EPIC FAIL: {0}", excepion); Logger.FatalException("EPIC FAIL: {0}", excepion);
} }
} }
} }