From c5cb70210e4b462d321ab6e9930eb77858754b95 Mon Sep 17 00:00:00 2001 From: venusbb Date: Mon, 26 Jun 2017 16:15:58 +0100 Subject: [PATCH] add logs to see the IP address of the inbound sms --- app/notifications/receive_notifications.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/notifications/receive_notifications.py b/app/notifications/receive_notifications.py index c4005b5e0..13b3c47ed 100644 --- a/app/notifications/receive_notifications.py +++ b/app/notifications/receive_notifications.py @@ -28,6 +28,7 @@ def receive_mmg_sms(): 'DateRecieved': '2017-05-21+11%3A56%3A11' } """ + current_app.logger.info("Inbound sms sender IP information {}".format(request.headers.getlist("X-Forwarded-For"))) post_data = request.get_json() inbound_number = strip_leading_forty_four(post_data['Number'])