mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-18 05:31:48 -05:00
put more log messages to view what env returns
This commit is contained in:
@@ -52,7 +52,8 @@ def restrict_ip_sms():
|
||||
ip_list = ip_route.split(',')
|
||||
if len(ip_list) >= 3:
|
||||
ip = ip_list[len(ip_list) - 3]
|
||||
current_app.logger.info("Inbound sms ip route list {}".format(ip_route))
|
||||
current_app.logger.info("Inbound sms ip route list {} OS environ{}"
|
||||
.format(ip_route, current_app.config.get('SMS_INBOUND_WHITELIST')))
|
||||
|
||||
if ip in current_app.config.get('SMS_INBOUND_WHITELIST'):
|
||||
current_app.logger.info("Inbound sms ip addresses {} passed ".format(ip))
|
||||
|
||||
Reference in New Issue
Block a user