Skip to content

Commit

Permalink
Get logger name from rcl [direct]
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood committed Jan 23, 2018
1 parent e08c800 commit c440b08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rclcpp/src/rclcpp/node_interfaces/node_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ using rclcpp::node_interfaces::NodeLogging;
NodeLogging::NodeLogging(rclcpp::node_interfaces::NodeBaseInterface * node_base)
: node_base_(node_base)
{
// TODO(dhood): use the namespace (slashes converted to dots)
logger_ = rclcpp::get_logger(node_base_->get_name());
logger_ = rclcpp::get_logger(rcl_node_get_logger_name(node_base_->get_rcl_node_handle()));
}

NodeLogging::~NodeLogging()
Expand Down

0 comments on commit c440b08

Please sign in to comment.