From 017f27220117a808a051ae7ef236974e8cbb50e0 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 7 Oct 2023 22:56:22 +0300 Subject: [PATCH] Log Notifiarr errors as warnings --- src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs index e88de8af7..d7b4a0d96 100644 --- a/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs +++ b/src/NzbDrone.Core/Notifications/Notifiarr/NotifiarrProxy.cs @@ -50,17 +50,17 @@ private void ProcessNotification(WebhookPayload payload, NotifiarrSettings setti switch ((int)responseCode) { 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"); case 400: // 400 responses shouldn't be treated as an actual error because it's a misconfiguration // between Radarr and Notifiarr for a specific event, but shouldn't stop all events. - _logger.Error("HTTP 400 - Unable to send notification. Ensure Radarr Integration is enabled & assigned a channel on Notifiarr"); + _logger.Warn("HTTP 400 - Unable to send notification. Ensure Radarr Integration is enabled & assigned a channel on Notifiarr"); break; case 502: case 503: 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); case 520: case 521: