Merge pull request #1047 from alphagov/inboundsms_checkip

add logs to see the IP address of the inbound sms
This commit is contained in:
Venus Bailey
2017-06-26 16:47:40 +01:00
committed by GitHub

View File

@@ -28,6 +28,7 @@ def receive_mmg_sms():
'DateRecieved': '2017-05-21+11%3A56%3A11' '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() post_data = request.get_json()
inbound_number = strip_leading_forty_four(post_data['Number']) inbound_number = strip_leading_forty_four(post_data['Number'])