Skip to content

Conversation

@MazixM
Copy link

@MazixM MazixM commented Aug 23, 2021

This is checking if content of custom grok patterns and also grok-patterns are correct on loading.

@Marusyk Marusyk self-requested a review August 24, 2021 21:58
@Marusyk Marusyk self-assigned this Aug 24, 2021
@Marusyk Marusyk linked an issue Aug 24, 2021 that may be closed by this pull request
@Marusyk
Copy link
Owner

Marusyk commented Aug 24, 2021

Please add unit tests

Copy link
Owner

@Marusyk Marusyk left a comment

Choose a reason for hiding this comment

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

What do you think about throwing some valid exception when the custom file is not valid instead of just ignore it?

@MazixM
Copy link
Author

MazixM commented Aug 27, 2021

If i add this then i can help users to find bug if they done some mistake in a file. I can add for example ArgumentException in case of not valid file. Can you let me know is it good way?

@Marusyk
Copy link
Owner

Marusyk commented Aug 30, 2021

Yeah, agree. I think you can use FormatException for that

@Marusyk
Copy link
Owner

Marusyk commented Sep 4, 2021

Hi @MazixM
I am sorry but the issue has already been fixed in this PR #23
Thank you for your interest in this project.
If you have some ideas on how to make grok.net better, please don't hesitate - create a PR.

Also, we will keep a list of issues that are approachable for newcomers under the good-first-issue label.

Waiting for your new PRs

@Marusyk Marusyk closed this Sep 4, 2021
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.

Add validation of custom grok patterns file

2 participants