diff options
author | Andy Doan <andy.doan@linaro.org> | 2016-02-05 10:56:31 -0600 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2016-02-05 10:56:31 -0600 |
commit | 95d98ac139cf9704b67e1133a6ae9f56b4bb5b7f (patch) | |
tree | 69974232f9257fe8d948ad76663e1f9568f5170e | |
parent | e161922c59cbca7811b8f70108af71648dc1babb (diff) |
reports: log meta variables when IP can't be found
We should log the META information so we can come back to this later and
understand how we fail to determine an IP address.
Change-Id: I4fd189bc91c5f50646babbaebe9d3c823dd1187b
-rw-r--r-- | license_protected_downloads/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/license_protected_downloads/models.py b/license_protected_downloads/models.py index f35538b..8393f95 100644 --- a/license_protected_downloads/models.py +++ b/license_protected_downloads/models.py @@ -34,6 +34,8 @@ def get_ip(request): ip = request.META.get(field) if ip and ip != 'unknown': return ip.split(',')[0] + + logging.warn('Unable to find request ip: %r', request.META) return 'unkwnown' |