Major logging overhaul

This commit is contained in:
Mark McDowall 2014-03-13 13:12:42 -07:00
commit 2f3430387e
102 changed files with 284 additions and 238 deletions

View file

@ -58,7 +58,7 @@ namespace NzbDrone.Core.Download
if (!failedItems.Any())
{
_logger.Trace("Yay! No encrypted downloads");
_logger.Debug("Yay! No encrypted downloads");
return;
}
@ -69,13 +69,13 @@ namespace NzbDrone.Core.Download
if (!historyItems.Any())
{
_logger.Trace("Unable to find matching history item");
_logger.Debug("Unable to find matching history item");
continue;
}
if (failedHistory.Any(h => failedLocal.Id.Equals(h.Data.GetValueOrDefault(DOWNLOAD_CLIENT_ID))))
{
_logger.Trace("Already added to history as failed");
_logger.Debug("Already added to history as failed");
continue;
}
@ -103,7 +103,7 @@ namespace NzbDrone.Core.Download
if (!failedItems.Any())
{
_logger.Trace("Yay! No failed downloads");
_logger.Debug("Yay! No failed downloads");
return;
}
@ -114,13 +114,13 @@ namespace NzbDrone.Core.Download
if (!historyItems.Any())
{
_logger.Trace("Unable to find matching history item");
_logger.Debug("Unable to find matching history item");
continue;
}
if (failedHistory.Any(h => failedLocal.Id.Equals(h.Data.GetValueOrDefault(DOWNLOAD_CLIENT_ID))))
{
_logger.Trace("Already added to history as failed");
_logger.Debug("Already added to history as failed");
continue;
}
@ -164,7 +164,7 @@ namespace NzbDrone.Core.Download
if (downloadClient == null)
{
_logger.Trace("No download client is configured");
_logger.Debug("No download client is configured");
}
return downloadClient;
@ -174,7 +174,7 @@ namespace NzbDrone.Core.Download
{
if (!_configService.EnableFailedDownloadHandling)
{
_logger.Trace("Failed Download Handling is not enabled");
_logger.Debug("Failed Download Handling is not enabled");
return;
}