mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
Clean logging messages in AppriseProxy
This commit is contained in:
@@ -91,7 +91,7 @@ namespace NzbDrone.Core.Notifications.Apprise
|
|||||||
{
|
{
|
||||||
if (httpException.Response.StatusCode == HttpStatusCode.Unauthorized)
|
if (httpException.Response.StatusCode == HttpStatusCode.Unauthorized)
|
||||||
{
|
{
|
||||||
_logger.Error(ex, $"HTTP Auth credentials are invalid: {0}", ex.Message);
|
_logger.Error(ex, "HTTP Auth credentials are invalid: {0}", ex.Message);
|
||||||
return new ValidationFailure("AuthUsername", $"HTTP Auth credentials are invalid: {ex.Message}");
|
return new ValidationFailure("AuthUsername", $"HTTP Auth credentials are invalid: {ex.Message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ namespace NzbDrone.Core.Notifications.Apprise
|
|||||||
{
|
{
|
||||||
var error = Json.Deserialize<AppriseError>(httpException.Response.Content);
|
var error = Json.Deserialize<AppriseError>(httpException.Response.Content);
|
||||||
|
|
||||||
_logger.Error(ex, $"Unable to send test message. Response from API: {0}", error.Error);
|
_logger.Error(ex, "Unable to send test message. Response from API: {0}", error.Error);
|
||||||
return new ValidationFailure(string.Empty, $"Unable to send test message. Response from API: {error.Error}");
|
return new ValidationFailure(string.Empty, $"Unable to send test message. Response from API: {error.Error}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user