Skip to content

Commit 5d6482b

Browse files
committed
chore(karma): correct the 404 ignoring
1 parent 023765c commit 5d6482b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

karma-shared.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ module.exports = function(config, specificOptions) {
144144

145145

146146
log4js.addAppender(function(log) {
147+
var msg = log.data[0];
148+
147149
// ignore web-server's 404s
148150
if (log.categoryName === 'web-server' && log.level.levelStr === config.LOG_WARN &&
149-
IGNORED_404.indexOf(log.data[0]) !== -1) {
151+
IGNORED_404.some(function(ignoredLog) {return msg.indexOf(ignoredLog) !== -1})) {
150152
return;
151153
}
152154

0 commit comments

Comments
 (0)