-
Notifications
You must be signed in to change notification settings - Fork 49
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
API to enable log severity setting. #30
Conversation
ros2/rmw#124 url on rmw. The patch enables setting log severity from userland applications. The parameter passed is defined inside rmw/include/types.h Signed-off-by: Sriram Raghunathan <sriram.max@gmail.com>
rmw_implementation/src/functions.cpp
Outdated
@@ -355,6 +355,10 @@ RMW_INTERFACE_FN(rmw_service_server_is_available, | |||
rmw_ret_t, RMW_RET_ERROR, | |||
3, ARG_TYPES(const rmw_node_t *, const rmw_client_t *, bool *)) | |||
|
|||
RMW_INTERFACE_FN(rmw_set_log_severity, | |||
rmw_ret_t, RMW_RET_ERROR, | |||
1, ARG_TYPES(const rmw_log_severity_t *)) |
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.
Since rmw_log_severity_t
is a primitive type this doesn't need to be passed as const *
. A plain rmw_log_severity_t
is sufficient.
addressing comments Signed-off-by: Sriram Raghunathan <sriram.max@gmail.com>
@dirk-thomas fixed the comment. |
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.
The patch looks good. Merging needs to wait until the rmw
interface specifies the new function and the rmw implementations implement it.
@dirk-thomas Thanks. |
ros2/rmw#124 url on rmw.
The patch enables setting log severity from userland applications. The parameter
passed is defined inside rmw/include/types.h
Signed-off-by: Sriram Raghunathan sriram.max@gmail.com
Connect to ros2/rmw#124