Missing language strings should be logged as warnings, not errors.
This commit is contained in:
parent
4acd10d344
commit
f9ec8a4419
@ -166,7 +166,7 @@ class MultiLanguageObject(object):
|
||||
result = self.messages
|
||||
for field in fields:
|
||||
if field not in result:
|
||||
logging.error(
|
||||
logging.debug(
|
||||
"Please define self.message{f}".format(
|
||||
f=''.join(
|
||||
'[\'{field}\']'.format(
|
||||
@ -184,7 +184,7 @@ class MultiLanguageObject(object):
|
||||
if language not in result:
|
||||
language = 'en'
|
||||
if language not in result:
|
||||
logging.error(
|
||||
logging.debug(
|
||||
"Please define self.message{f}['en']".format(
|
||||
f=''.join(
|
||||
'[\'{field}\']'.format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user