Fixed: Regression in error message logging

Closes #5461
This commit is contained in:
bakerboy448 2023-03-01 17:19:16 -06:00 committed by GitHub
parent 6082253166
commit 92ecb30fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View File

@ -55,7 +55,7 @@ namespace NzbDrone.Core.ImportLists.Custom
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, "Unable to connect to import list."); _logger.Error(ex, "Unable to connect to import list.");
return new ValidationFailure(string.Empty, "Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details."); return new ValidationFailure(string.Empty, $"Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details.");
} }
return null; return null;

View File

@ -233,13 +233,13 @@ namespace NzbDrone.Core.ImportLists
{ {
_logger.Warn(ex, "Unable to connect to import list"); _logger.Warn(ex, "Unable to connect to import list");
return new ValidationFailure(string.Empty, "Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details."); return new ValidationFailure(string.Empty, $"Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details.");
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Warn(ex, "Unable to connect to import list"); _logger.Warn(ex, "Unable to connect to import list");
return new ValidationFailure(string.Empty, "Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details."); return new ValidationFailure(string.Empty, $"Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details.");
} }
return null; return null;

View File

@ -64,12 +64,12 @@ namespace NzbDrone.Core.ImportLists.Sonarr
} }
_logger.Error(ex, "Unable to connect to import list."); _logger.Error(ex, "Unable to connect to import list.");
return new ValidationFailure(string.Empty, "Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details."); return new ValidationFailure(string.Empty, $"Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details.");
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, "Unable to connect to import list."); _logger.Error(ex, "Unable to connect to import list.");
return new ValidationFailure(string.Empty, "Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details."); return new ValidationFailure(string.Empty, $"Unable to connect to import list: {ex.Message}. Check the log surrounding this error for details.");
} }
return null; return null;

View File

@ -389,7 +389,7 @@ namespace NzbDrone.Core.Indexers
{ {
_logger.Warn(ex, "Unable to connect to indexer"); _logger.Warn(ex, "Unable to connect to indexer");
return new ValidationFailure(string.Empty, "Unable to connect to indexer: {ex.Message}. Check the log surrounding this error for details"); return new ValidationFailure(string.Empty, $"Unable to connect to indexer: {ex.Message}. Check the log surrounding this error for details");
} }
return null; return null;

View File

@ -134,7 +134,7 @@ namespace NzbDrone.Core.Indexers.Newznab
{ {
_logger.Warn(ex, "Unable to connect to indexer: " + ex.Message); _logger.Warn(ex, "Unable to connect to indexer: " + ex.Message);
return new ValidationFailure(string.Empty, "Unable to connect to indexer: {ex.Message}. Check the log surrounding this error for details"); return new ValidationFailure(string.Empty, $"Unable to connect to indexer: {ex.Message}. Check the log surrounding this error for details");
} }
} }

View File

@ -126,7 +126,7 @@ namespace NzbDrone.Core.Indexers.Torznab
{ {
_logger.Warn(ex, "Unable to connect to indexer: " + ex.Message); _logger.Warn(ex, "Unable to connect to indexer: " + ex.Message);
return new ValidationFailure(string.Empty, "Unable to connect to indexer: {ex.Message}. Check the log surrounding this error for details"); return new ValidationFailure(string.Empty, $"Unable to connect to indexer: {ex.Message}. Check the log surrounding this error for details");
} }
} }

View File

@ -57,7 +57,7 @@ namespace NzbDrone.Core.Notifications.Notifiarr
catch (Exception ex) catch (Exception ex)
{ {
_logger.Error(ex, ex.Message); _logger.Error(ex, ex.Message);
return new ValidationFailure(string.Empty, "Unable to send test notification: {ex.Message}. Check the log surrounding this error for details"); return new ValidationFailure(string.Empty, "$Unable to send test notification: {ex.Message}. Check the log surrounding this error for details");
} }
} }