Fixed some exception logging where exceptions weren't logged.

pull/7/merge
kay.one 13 years ago
parent 883dffca80
commit 79b3a22c9a

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

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

@ -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);
}
}

@ -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
{

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