Cleanup exception messages

Closes #2054
pull/2104/head
Mark McDowall 7 years ago
parent d257b926dc
commit 5efff4d481
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0

@ -1,4 +1,4 @@
using System; using System;
using System.Linq; using System.Linq;
using NLog; using NLog;
using NzbDrone.Common.Cache; using NzbDrone.Common.Cache;
@ -177,12 +177,12 @@ namespace NzbDrone.Core.DataAugmentation.Scene
} }
else else
{ {
_logger.Warn("Received empty list of mapping. will not update."); _logger.Warn("Received empty list of mapping. will not update");
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, "Failed to Update Scene Mappings."); _logger.Error(ex, "Failed to Update Scene Mappings");
} }
} }

@ -68,14 +68,14 @@ namespace NzbDrone.Core.Indexers.Newznab
} }
catch (XmlException ex) catch (XmlException ex)
{ {
_logger.Debug(ex, "Failed to parse newznab api capabilities for {0}.", indexerSettings.BaseUrl); _logger.Debug(ex, "Failed to parse newznab api capabilities for {0}", indexerSettings.BaseUrl);
ex.WithData(response); ex.WithData(response);
throw; throw;
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, "Failed to determine newznab api capabilities for {0}, using the defaults instead till Sonarr restarts.", indexerSettings.BaseUrl); _logger.Error(ex, "Failed to determine newznab api capabilities for {0}, using the defaults instead till Sonarr restarts", indexerSettings.BaseUrl);
} }
return capabilities; return capabilities;

Loading…
Cancel
Save