Skip to content

Commit

Permalink
gjg
Browse files Browse the repository at this point in the history
  • Loading branch information
you285168 committed Mar 7, 2020
1 parent c4dc39b commit 3f9127a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_country_code(ip):
response = reader.country(ip)
code = response.country.iso_code
except Exception as e:
logger.error('geoip2 error: {0}'.format(str(e)))
logger.error('geoip2 error: {0} remote{1} forward{2}'.format(str(e), global_request.META.get('REMOTE_ADDR'), global_request.META.get('HTTP_X_FORWARDED_FOR')))
return code


Expand Down

0 comments on commit 3f9127a

Please sign in to comment.