GeoIP: update logger level
This commit is contained in:
parent
94f028ce68
commit
33055df2ae
|
|
@ -32,7 +32,7 @@ def determine_country_code(ip_addr):
|
||||||
country_code = geoip.country_code(ip_addr)
|
country_code = geoip.country_code(ip_addr)
|
||||||
country_code = country_code.lower()
|
country_code = country_code.lower()
|
||||||
except GeoIP2Exception as ex:
|
except GeoIP2Exception as ex:
|
||||||
logger.error(f'GEOIP Exception: {ex}')
|
logger.info(f'GEOIP Exception: {ex}. ip: {ip_addr}')
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logger.error(f'GEOIP Base exception: {ex}')
|
logger.error(f'GEOIP Base exception: {ex}')
|
||||||
return country_code
|
return country_code
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user