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

Fix FieldsExist warning using LOGPREP_APPEND_MEASUREMENT_TO_EVENT #725

Conversation

dtrai2
Copy link
Collaborator

@dtrai2 dtrai2 commented Dec 10, 2024

Considering that the feature LOGPREP_APPEND_MEASUREMENT_TO_EVENT will be removed in the future I decided to just recreate the previous behavior. Before #696 was merged it was ignored if the value was already present or not. I ensured here now that the same behavior is happing again, by using _add_field_to_silent_fail. It is to note though that this means, that only the first processor/rule of a kind will write it's processing times into the event. Consecutive processors/rules of the same type will then be ignored.

closes #721

- this fixes a FieldExist warning which was thrown when processing times of a rule where already present in the event
- recreates previous behavior before #696 was merged
@dtrai2 dtrai2 requested a review from ppcad December 10, 2024 12:22
@dtrai2 dtrai2 self-assigned this Dec 10, 2024
@dtrai2 dtrai2 linked an issue Dec 10, 2024 that may be closed by this pull request
@ekneg54 ekneg54 merged commit 474d906 into main Dec 11, 2024
12 of 13 checks passed
@ekneg54 ekneg54 deleted the 721-enabling-appending-time-measurements-to-events-can-cause-errors branch December 11, 2024 09:55
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.

Enabling appending time measurements to events can cause errors
3 participants