use debug since it floods the test logs

This commit is contained in:
Girish Ramakrishnan
2020-11-21 18:28:45 -08:00
parent bf73cbaf97
commit 58487b729a
+2 -2
View File
@@ -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 });