Skip to content

Commit

Permalink
feat(android): ignoreLog config (#13560)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Sep 25, 2022
1 parent a6b6987 commit 4c042ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions android/cli/hooks/run.js
Expand Up @@ -18,6 +18,7 @@ exports.cliVersion = '>=3.2';

exports.init = function (logger, config, cli) {
let deviceInfo = [];
const ignoreLog = config.cli.ignoreLog || [];

cli.on('build.pre.compile', {
priority: 8000,
Expand Down Expand Up @@ -266,6 +267,13 @@ exports.init = function (logger, config, cli) {
return;
}

// ignore some Android logs in info log level
for (let i = 0, len = ignoreLog.length; i < len; ++i) {
if (line.includes(ignoreLog[i])) {
return;
}
}

switch (logLevel) {
case 'v':
logger.trace(line);
Expand Down

0 comments on commit 4c042ee

Please sign in to comment.