mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 15:22:42 +00:00
Log Notifiarr errors as warnings
This commit is contained in:
parent
3108b39431
commit
5a1b31a641
1 changed files with 3 additions and 3 deletions
|
@ -50,17 +50,17 @@ private void ProcessNotification(WebhookPayload payload, NotifiarrSettings setti
|
||||||
switch ((int)responseCode)
|
switch ((int)responseCode)
|
||||||
{
|
{
|
||||||
case 401:
|
case 401:
|
||||||
_logger.Error("HTTP 401 - API key is invalid");
|
_logger.Warn("HTTP 401 - API key is invalid");
|
||||||
throw new NotifiarrException("API key is invalid");
|
throw new NotifiarrException("API key is invalid");
|
||||||
case 400:
|
case 400:
|
||||||
// 400 responses shouldn't be treated as an actual error because it's a misconfiguration
|
// 400 responses shouldn't be treated as an actual error because it's a misconfiguration
|
||||||
// between Lidarr and Notifiarr for a specific event, but shouldn't stop all events.
|
// between Lidarr and Notifiarr for a specific event, but shouldn't stop all events.
|
||||||
_logger.Error("HTTP 400 - Unable to send notification. Ensure Lidarr Integration is enabled & assigned a channel on Notifiarr");
|
_logger.Warn("HTTP 400 - Unable to send notification. Ensure Lidarr Integration is enabled & assigned a channel on Notifiarr");
|
||||||
break;
|
break;
|
||||||
case 502:
|
case 502:
|
||||||
case 503:
|
case 503:
|
||||||
case 504:
|
case 504:
|
||||||
_logger.Error("Unable to send notification. Service Unavailable");
|
_logger.Warn("Unable to send notification. Service Unavailable");
|
||||||
throw new NotifiarrException("Unable to send notification. Service Unavailable", ex);
|
throw new NotifiarrException("Unable to send notification. Service Unavailable", ex);
|
||||||
case 520:
|
case 520:
|
||||||
case 521:
|
case 521:
|
||||||
|
|
Loading…
Reference in a new issue