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

Use generic-number in riemann (4.0) #4052

Merged
merged 1 commit into from Aug 24, 2022

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Jun 21, 2022

This PR changes the riemann driver to use GenericNumber and its associated number parsing functions, instead of using using strtoll() without error handling.

This is not really a functional change, rather it is a refactor, but has originally been done in the scope of the 4.0 typing work.

@bazsi
Copy link
Collaborator Author

bazsi commented Jun 21, 2022

no news file needed.

@bazsi bazsi force-pushed the use-generic-number-in-riemann branch from 2176f47 to 6260aa7 Compare June 21, 2022 14:30
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@bazsi bazsi added this to In progress in syslog-ng 4.0 via automation Jun 23, 2022
@bazsi bazsi changed the title Use generic-number in riemann Use generic-number in riemann (4.0) Jun 23, 2022
@MrAnno MrAnno added this to the syslog-ng-4.0 milestone Jun 23, 2022
@bazsi bazsi force-pushed the use-generic-number-in-riemann branch from 6260aa7 to 4cf05d3 Compare July 28, 2022 08:37
@OverOrion OverOrion self-requested a review August 15, 2022 13:49
@MrAnno MrAnno requested a review from gaborznagy August 18, 2022 12:49
Copy link
Collaborator

@OverOrion OverOrion left a comment

Choose a reason for hiding this comment

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

I have checked the last commit, and it looks good to me.

I just want to mention that the old behavior was that g_scii_strtoll() returned with 0 if it was unable to parse the string as number, meanwhile the new one only calls the setter if it was parsed successfully.

If #4022 gets merged, then it can get merged too (after a rebase, if needed).

@bazsi bazsi force-pushed the use-generic-number-in-riemann branch from 4cf05d3 to 3267b67 Compare August 24, 2022 10:40
@kira-syslogng
Copy link
Contributor

Build FAILURE

@bazsi bazsi force-pushed the use-generic-number-in-riemann branch from 3267b67 to 547b1cd Compare August 24, 2022 11:08
gaborznagy
gaborznagy previously approved these changes Aug 24, 2022
@gaborznagy
Copy link
Collaborator

@bazsi Can you rebase this branch for a last time, please?

…ENT_FIELD_TIME

Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
@MrAnno MrAnno merged commit 71eb6bf into syslog-ng:master Aug 24, 2022
syslog-ng 4.0 automation moved this from In progress to Done Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants