Skip to content

Commit

Permalink
Merge pull request #8 from micro-ROS/feature/fix_disabled_loggin
Browse files Browse the repository at this point in the history
Fix disabled logging
  • Loading branch information
jamoralp authored Jun 16, 2020
2 parents ffeb083 + 57f3ff6 commit d651b11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rcl/src/rcl/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,15 @@ rcl_node_fini(rcl_node_t * node)
rcl_allocator_t allocator = node->impl->options.allocator;
rcl_ret_t result = RCL_RET_OK;
rcl_ret_t rcl_ret = RCL_RET_OK;
#ifdef RCL_LOGGING_ENABLED
if (rcl_logging_rosout_enabled() && node->impl->options.enable_rosout) {
rcl_ret = rcl_logging_rosout_fini_publisher_for_node(node);
if (rcl_ret != RCL_RET_OK && rcl_ret != RCL_RET_NOT_INIT) {
RCL_SET_ERROR_MSG("Unable to fini publisher for node.");
result = RCL_RET_ERROR;
}
}
#endif // RCL_LOGGING_ENABLED
rmw_ret_t rmw_ret = rmw_destroy_node(node->impl->rmw_node_handle);
if (rmw_ret != RMW_RET_OK) {
RCL_SET_ERROR_MSG(rmw_get_error_string().str);
Expand Down

0 comments on commit d651b11

Please sign in to comment.