History check shouldn't die if download client is not configured.
Do not log exceptron response when no errors are found
This commit is contained in:
parent
d7ca33ff04
commit
2d028d9bc7
|
@ -41,7 +41,9 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_downloadClientProvider.GetDownloadClient().GetType() == typeof (Sabnzbd))
|
var downloadClient = _downloadClientProvider.GetDownloadClient();
|
||||||
|
|
||||||
|
if (downloadClient != null && downloadClient.GetType() == typeof (Sabnzbd))
|
||||||
{
|
{
|
||||||
_logger.Trace("Performing history status check on report");
|
_logger.Trace("Performing history status check on report");
|
||||||
foreach (var episode in subject.Episodes)
|
foreach (var episode in subject.Episodes)
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace NzbDrone.Host.Owin
|
||||||
|
|
||||||
public override void Write(string value)
|
public override void Write(string value)
|
||||||
{
|
{
|
||||||
if (value.ToLower().Contains("error") && !value.ToLower().Contains("sqlite"))
|
if (value.ToLower().Contains("error") && !(value.ToLower().Contains("sqlite") || value.ToLower().Contains("\"errors\":null")))
|
||||||
{
|
{
|
||||||
_logger.Error(value);
|
_logger.Error(value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue