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

API to enable log severity setting. #30

Merged
merged 3 commits into from Jan 18, 2018

Conversation

sriramster
Copy link
Contributor

@sriramster sriramster commented Oct 20, 2017

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

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>
@@ -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 *))
Copy link
Member

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.

@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) requires-changes labels Oct 20, 2017
addressing comments

Signed-off-by: Sriram Raghunathan <sriram.max@gmail.com>
@sriramster
Copy link
Contributor Author

@dirk-thomas fixed the comment.

@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) requires-changes labels Oct 20, 2017
Copy link
Member

@dirk-thomas dirk-thomas left a 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.

@sriramster
Copy link
Contributor Author

@dirk-thomas Thanks.

@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Oct 30, 2017
@dirk-thomas dirk-thomas merged commit 8fa3cfe into ros2:master Jan 18, 2018
@dirk-thomas dirk-thomas removed the in progress Actively being worked on (Kanban column) label Jan 18, 2018
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.

None yet

2 participants