Skip to content

Conversation

bekce
Copy link

@bekce bekce commented Mar 30, 2015

Grok.compile() silently ignored non-existent pattern names and simply placed "null". I have changed it to throw an exception if no pattern was found with given name.

// Log the exeception
}
}
if(!grokPatternDefinition.containsKey(group.get("pattern"))){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bekce Add space after if and parenthesis.

if (!grokPatternDefinition.containsKey(group.get("pattern"))) {

}
}
if(!grokPatternDefinition.containsKey(group.get("pattern"))){
throw new GrokException("Pattern name " + group.get("pattern") + " unknown!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alter the indentation to consistent with the existing code.

@SivaAccionLabs
Copy link
Contributor

@bekce Please resolve the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants