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

[Enhancement] simplify python rules #64

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

iwilltry42
Copy link

What

Simplify python rules to only have 2 states and a single regex for matching lines between the start (Traceback ...) and End (<Error>...) of a Traceback.
The new regex matches any line that starts with one or more tabs/spaces, followed by at least one non-whitespace symbol, followed by whatever else.

Why

This is the second proposed option here: #62 (comment)

Fix #62


FYI @jkschulz & @igorpeshansky

Copy link
Member

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

Let's make sure this gets tested...

lib/fluent/plugin/exception_detector.rb Show resolved Hide resolved
@iwilltry42
Copy link
Author

Hi @igorpeshansky , is there anything left to do for me? :)

@martimors
Copy link

Hi! Any chance this fix is ready to merge soon?

@iwilltry42
Copy link
Author

Hi @igorpeshansky , I added the requested tests but the PR is still showing Changes requested 🤷‍♂️

@iwilltry42
Copy link
Author

Hi @igorpeshansky is there anything left to do here?

@sontek
Copy link

sontek commented Oct 22, 2021

@igorpeshansky is there anything keeping you from merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traceback breaking Python rules
5 participants