diff --git a/packages/core/package.json b/packages/core/package.json index 978815a3fd..cd7cc73158 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -69,7 +69,7 @@ "inquirer": "~8.2.0", "lodash.flatmap": "~4.5.0", "lodash.groupby": "~4.6.0", - "log4js": "~6.2.1", + "log4js": "~6.4.1", "minimatch": "~3.0.4", "mkdirp": "~1.0.3", "mutation-testing-elements": "1.7.8", diff --git a/packages/core/src/logging/log-utils.ts b/packages/core/src/logging/log-utils.ts index 0a24144ae1..0c56a92681 100644 --- a/packages/core/src/logging/log-utils.ts +++ b/packages/core/src/logging/log-utils.ts @@ -7,7 +7,7 @@ import log4js from 'log4js'; * @param b other log level */ export function minLevel(a: LogLevel, b: LogLevel): LogLevel { - if (log4js.levels.getLevel(b).isGreaterThanOrEqualTo(log4js.levels.getLevel(a))) { + if (log4js.levels.getLevel(b, log4js.levels.INFO).isGreaterThanOrEqualTo(log4js.levels.getLevel(a, log4js.levels.INFO))) { return a; } else { return b; diff --git a/packages/core/test/helpers/producers.ts b/packages/core/test/helpers/producers.ts index 7e31fea01a..6e67cd5c5b 100644 --- a/packages/core/test/helpers/producers.ts +++ b/packages/core/test/helpers/producers.ts @@ -67,6 +67,7 @@ export function createCheckerPoolMock(): sinon.SinonStubbedInstance => { return { + category: 'foo-category', _log: sinon.stub(), addContext: sinon.stub(), clearContext: sinon.stub(),