mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
The great logger.Error cleanup!
This commit is contained in:
@@ -42,7 +42,7 @@ namespace NzbDrone.Core.Notifications.PushBullet
|
||||
}
|
||||
catch (PushBulletException ex)
|
||||
{
|
||||
_logger.Error(ex, "Unable to send test message to: " + channelTag);
|
||||
_logger.Error(ex, "Unable to send test message to {0}", channelTag);
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace NzbDrone.Core.Notifications.PushBullet
|
||||
}
|
||||
catch (PushBulletException ex)
|
||||
{
|
||||
_logger.Error(ex, "Unable to send test message to: " + deviceId);
|
||||
_logger.Error(ex, "Unable to send test message to {0}", deviceId);
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
@@ -101,16 +101,16 @@ namespace NzbDrone.Core.Notifications.PushBullet
|
||||
{
|
||||
if (ex.Response.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
_logger.Error(ex, "API Key is invalid: " + ex.Message);
|
||||
_logger.Error(ex, "API Key is invalid");
|
||||
return new ValidationFailure("ApiKey", "API Key is invalid");
|
||||
}
|
||||
|
||||
_logger.Error(ex, "Unable to send test message: " + ex.Message);
|
||||
_logger.Error(ex, "Unable to send test message");
|
||||
return new ValidationFailure("ApiKey", "Unable to send test message");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex, "Unable to send test message: " + ex.Message);
|
||||
_logger.Error(ex, "Unable to send test message");
|
||||
return new ValidationFailure("", "Unable to send test message");
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace NzbDrone.Core.Notifications.PushBullet
|
||||
{
|
||||
if (ex.Response.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
_logger.Error(ex, "API Key is invalid: " + ex.Message);
|
||||
_logger.Error(ex, "API Key is invalid");
|
||||
throw;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user