Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log when regex does not match #618

Merged
merged 1 commit into from Jul 11, 2019
Merged

Log when regex does not match #618

merged 1 commit into from Jul 11, 2019

Conversation

bruceg
Copy link
Member

@bruceg bruceg commented Jul 10, 2019

Description

Log regex pattern match failures with a warning instead of just a debugging statement, include the original field, and truncate the original field to (arbitrary) 60 characters.

Closes #397

Signed-off-by: Bruce Guenter <bruce@untroubled.org>
@bruceg
Copy link
Member Author

bruceg commented Jul 11, 2019

The "60 characters" limit is completely arbitrary, and I would appreciate advice on how to set it better.

@bruceg bruceg requested a review from LucioFranco July 11, 2019 00:06
Copy link
Contributor

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

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

Great work! 👍

@bruceg bruceg merged commit 0098034 into master Jul 11, 2019
@bruceg bruceg deleted the regex-log-failures branch July 11, 2019 01:51
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.

Log when regex does not match
2 participants