use debug since it floods the test logs
This commit is contained in:
+2
-2
@@ -53,7 +53,7 @@ function getTranslations(callback) {
|
||||
try {
|
||||
fallback = JSON.parse(fs.readFileSync(path.join(TRANSLATION_FOLDER, 'en.json'), 'utf8'));
|
||||
} catch (e) {
|
||||
console.error('Fallback language en not found', e);
|
||||
debug('getTranslations: Fallback language en not found', e);
|
||||
}
|
||||
|
||||
settings.getLanguage(function (error, lang) {
|
||||
@@ -63,7 +63,7 @@ function getTranslations(callback) {
|
||||
try {
|
||||
translations = JSON.parse(fs.readFileSync(path.join(TRANSLATION_FOLDER, lang + '.json'), 'utf8'));
|
||||
} catch (e) {
|
||||
console.error(`Requested language ${lang} not found`, e);
|
||||
debug(`getTranslations: Requested language ${lang} not found`, e);
|
||||
}
|
||||
|
||||
return callback(null, { translations, fallback });
|
||||
|
||||
Reference in New Issue
Block a user