Skip to content

Commit

Permalink
properly pass dologparse option
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jun 25, 2016
1 parent e771bc2 commit 9c33cfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions processors/processReduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ function processReduce(entries, match, meta)
};
var result = entries.filter(function(e)
{
if (match.doLogParse)
if (!match.doLogParse)
{
return (e.type in basicLogTypes);
}
else
{
if (e.type === "actions")
{
Expand All @@ -43,10 +47,6 @@ function processReduce(entries, match, meta)
}
return true;
}
else
{
return (e.type in basicLogTypes);
}
}).map(function(e)
{
var e2 = Object.assign(
Expand Down
1 change: 1 addition & 0 deletions svc/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function insertStandardParse(match, cb)
type: "parsed",
cassandra: cassandra,
skipParse: true,
doLogParse: match.doLogParse,
}, cb);
}

Expand Down

0 comments on commit 9c33cfc

Please sign in to comment.