mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Major logging overhaul
This commit is contained in:
parent
953024cd40
commit
2f3430387e
102 changed files with 284 additions and 238 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue