Updated NLog to v4.2.3.

This commit is contained in:
Taloth Saldono
2016-02-11 22:13:42 +01:00
parent e01b2ef25c
commit 6a90035a4c
144 changed files with 305 additions and 5579 deletions

View File

@@ -130,15 +130,13 @@ namespace NzbDrone.Core.Download
}
catch (HttpException ex)
{
_logger.ErrorException(string.Format("Downloading torrent file for episode '{0}' failed ({1})",
remoteEpisode.Release.Title, torrentUrl), ex);
_logger.Error(ex, "Downloading torrent file for episode '{0}' failed ({1})", remoteEpisode.Release.Title, torrentUrl);
throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading torrent failed", ex);
}
catch (WebException ex)
{
_logger.ErrorException(string.Format("Downloading torrent file for episode '{0}' failed ({1})",
remoteEpisode.Release.Title, torrentUrl), ex);
_logger.Error(ex, "Downloading torrent file for episode '{0}' failed ({1})", remoteEpisode.Release.Title, torrentUrl);
throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading torrent failed", ex);
}
@@ -168,8 +166,7 @@ namespace NzbDrone.Core.Download
}
catch (FormatException ex)
{
_logger.ErrorException(string.Format("Failed to parse magnetlink for episode '{0}': '{1}'",
remoteEpisode.Release.Title, magnetUrl), ex);
_logger.Error(ex, "Failed to parse magnetlink for episode '{0}': '{1}'", remoteEpisode.Release.Title, magnetUrl);
return null;
}