-
Notifications
You must be signed in to change notification settings - Fork 102
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
[Logging] Clarify duration arg description in macros #359
Conversation
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice improvement, thanks @aprotyas ! Will run CI on it next.
Thanks for the reviews and for merging the PR! I'll open backports to Humble, Galactic, and Foxy since it's backwards compatible a nice QoL improvement on the status quo. |
@mergify backport humble galactic foxy |
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit 8da2aac)
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit 8da2aac)
✅ Backports have been created
|
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit 8da2aac)
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit 8da2aac) Co-authored-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit 8da2aac) Co-authored-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
The expectation that the `duration` argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified. Prior to this change, this information could only be found inside `RCUTILS_LOG_CONDITION_THROTTLE_BEFORE`, which is inconvenient. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit 8da2aac) Co-authored-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
Quoting from ros2/rclcpp#1929:
The expectation that the
duration
argument to the logging macros will be an integral value in milliseconds is not explicit at all, and as such the documentation for this argument should be clarified.Signed-off-by: Abrar Rahman Protyasha aprotyas@u.rochester.edu