Skip to content

Commit

Permalink
chore: move locale logging to DEBUG level
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeltour committed Jul 4, 2019
1 parent 6e33dbb commit 8aebb3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ace-core/src/checker/checker-chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function checkSingle(spineItem, epub, lang, axeRunner) {
const scriptContents = [];
let localePath = "";
try {
winston.info(`- Axe locale: [${lang}]`);
winston.debug(`- Axe locale: [${lang}]`);

// https://github.com/dequelabs/axe-core#localization
// https://github.com/dequelabs/axe-core/tree/develop/locales
Expand All @@ -55,7 +55,7 @@ async function checkSingle(spineItem, epub, lang, axeRunner) {
const localeScript = `window.__axeLocale__=${localeStr};`;
scriptContents.push(localeScript);
} else {
winston.info(`- Axe locale missing? [${lang}] => ${localePath}`);
winston.debug(`- Axe locale missing? [${lang}] => ${localePath}`);
}
}

Expand All @@ -77,7 +77,7 @@ async function checkSingle(spineItem, epub, lang, axeRunner) {
} catch (err) {
console.log(err);
winston.verbose(err);
winston.info(`- Axe locale problem? [${lang}] => ${localePath}`);
winston.debug(`- Axe locale problem? [${lang}] => ${localePath}`);
}

const results = await axeRunner.run(url, scripts, scriptContents, epub.basedir);
Expand Down

0 comments on commit 8aebb3b

Please sign in to comment.