Skip to content

fix: log level parsing to prevent false matches in message text#311

Open
hastinbe wants to merge 1 commit intorap2hpoutre:masterfrom
hastinbe:master
Open

fix: log level parsing to prevent false matches in message text#311
hastinbe wants to merge 1 commit intorap2hpoutre:masterfrom
hastinbe:master

Conversation

@hastinbe
Copy link
Copy Markdown

Replace strpos() check with strict regex that only matches log levels when they appear in the correct position after the timestamp bracket. This prevents words like "processed" or "failed" in log message text from being incorrectly identified as log levels.

Screenshot from 2025-10-29 09-35-50

Replace strpos() check with strict regex that only matches log levels
when they appear in the correct position after the timestamp bracket.
This prevents words like "processed" or "failed" in log message text
from being incorrectly identified as log levels.

Signed-off-by: Beau Hastings <beau@saweet.net>
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.

1 participant