[#2882] [Core] Nicer log message about missing GeoIP support in lt 1.1.1
This commit is contained in:
parent
e66be42c81
commit
6c73105a73
|
@ -498,9 +498,11 @@ class PreferencesManager(component.Component):
|
||||||
if geoip_db:
|
if geoip_db:
|
||||||
try:
|
try:
|
||||||
self.session.load_country_db(str(geoip_db))
|
self.session.load_country_db(str(geoip_db))
|
||||||
except Exception, e:
|
except RuntimeError, e:
|
||||||
log.error("Unable to load geoip database!")
|
log.error("Unable to load geoip database!")
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
except AttributeError:
|
||||||
|
log.warning("GeoIP Unavailable")
|
||||||
|
|
||||||
def _on_cache_size(self, key, value):
|
def _on_cache_size(self, key, value):
|
||||||
log.debug("%s: %s", key, value)
|
log.debug("%s: %s", key, value)
|
||||||
|
|
Loading…
Reference in New Issue