From 3d309651939cf1a89138a37b6c0f095f8b287eef Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Tue, 21 Dec 2021 12:47:37 +0000 Subject: [PATCH] Downgrade log about orphaned inbound SMS We can't control who might be sending messages on inbound numbers that we own i.e. this log isn't an actionable error. Looks like it used to represent something that _was_ an error [1], but that's not the case anymore, so it seems reasonable to downgrade it. [1]: https://github.com/alphagov/notifications-api/commit/d99ab329eb5937c87c50ac51332beadcd26b53f5#diff-80d123d9abb40f80a221979940657a2751cc7cb33f255aa8f352a8324023e022L125 --- app/notifications/receive_notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notifications/receive_notifications.py b/app/notifications/receive_notifications.py index 5d93845e0..72103c20f 100644 --- a/app/notifications/receive_notifications.py +++ b/app/notifications/receive_notifications.py @@ -159,7 +159,7 @@ def fetch_potential_service(inbound_number, provider_name): service = dao_fetch_service_by_inbound_number(inbound_number) if not service: - current_app.logger.error('Inbound number "{}" from {} not associated with a service'.format( + current_app.logger.warning('Inbound number "{}" from {} not associated with a service'.format( inbound_number, provider_name )) return False