mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
chore(karma): correct the 404 ignoring
This commit is contained in:
parent
023765c593
commit
5d6482bb3b
1 changed files with 3 additions and 1 deletions
|
|
@ -144,9 +144,11 @@ module.exports = function(config, specificOptions) {
|
|||
|
||||
|
||||
log4js.addAppender(function(log) {
|
||||
var msg = log.data[0];
|
||||
|
||||
// ignore web-server's 404s
|
||||
if (log.categoryName === 'web-server' && log.level.levelStr === config.LOG_WARN &&
|
||||
IGNORED_404.indexOf(log.data[0]) !== -1) {
|
||||
IGNORED_404.some(function(ignoredLog) {return msg.indexOf(ignoredLog) !== -1})) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue