From 79a10628a4947bc490160ea12682a191d74d1ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Thu, 24 Dec 2015 10:31:40 +0100 Subject: [PATCH] [fix] Log exception too if a key cannot be translated --- moulinette/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moulinette/core.py b/moulinette/core.py index a002a433..6479f681 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -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):