GeoIP: update logger level

This commit is contained in:
evgeniy-st 2019-09-24 12:31:52 +03:00
parent 94f028ce68
commit 33055df2ae

View File

@ -32,7 +32,7 @@ def determine_country_code(ip_addr):
country_code = geoip.country_code(ip_addr)
country_code = country_code.lower()
except GeoIP2Exception as ex:
logger.error(f'GEOIP Exception: {ex}')
logger.info(f'GEOIP Exception: {ex}. ip: {ip_addr}')
except Exception as ex:
logger.error(f'GEOIP Base exception: {ex}')
return country_code