[fix] Log exception too if a key cannot be translated

This commit is contained in:
Jérôme Lebleu 2015-12-24 10:31:40 +01:00
parent cbc64af4a5
commit 79a10628a4

View file

@ -202,8 +202,8 @@ class Translator(object):
return _load_key(self.default_locale)
except:
pass
logger.warning("unable to retrieve key '%s' for default locale '%s'",
key, self.default_locale)
logger.exception("unable to retrieve key '%s' for default locale '%s'",
key, self.default_locale)
return key
def _load_translations(self, locale, overwrite=False):