Skip to content

Commit

Permalink
remove logging and a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 committed Jul 14, 2020
1 parent 710a06f commit 1e5b1b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const filterEventsAgainstList = async ({
buildRuleMessage,
}: FilterEventsAgainstList): Promise<SignalSearchResponse> => {
try {
// logger.debug(buildRuleMessage(`exceptionsList: ${JSON.stringify(exceptionsList, null, 2)}`));
if (exceptionsList == null || exceptionsList.length === 0) {
logger.debug(buildRuleMessage('about to return original search result'));
return eventSearchResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export const searchAfterAndBulkCreate = async ({
buildRuleMessage,
})
: searchResult;
// searchResultSize += filteredEvents.hits.hits.length;
if (filteredEvents.hits.total === 0 || filteredEvents.hits.hits.length === 0) {
// everything in the events were allowed, so no need to generate signals
toReturn.success = true;
Expand Down Expand Up @@ -242,11 +241,6 @@ export const searchAfterAndBulkCreate = async ({
? filteredEvents.hits.hits[0].sort[0]
: undefined;
}
logger.debug(
`is searchResultSize (${searchResultSize}) > maxSignals (${tuple.maxSignals})?: ${
searchResultSize > tuple.maxSignals
}`
);
} catch (exc) {
logger.error(buildRuleMessage(`[-] search_after and bulk threw an error ${exc}`));
toReturn.success = false;
Expand Down

0 comments on commit 1e5b1b5

Please sign in to comment.