add logs to see the IP address of the inbound sms

This commit is contained in:
venusbb
2017-06-26 16:15:58 +01:00
parent 9e9b3f39a1
commit c5cb70210e

View File

@@ -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'])