From 66a7c625319879cafb7a895385057e2d85d78c45 Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Fri, 27 Apr 2018 15:31:08 -0700 Subject: [PATCH] update to rcutils logging in commented code as well (#466) --- rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp b/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp index 57f9b32..b3c947e 100644 --- a/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp +++ b/rclcpp_lifecycle/src/lifecycle_node_interface_impl.hpp @@ -359,9 +359,9 @@ public: } catch (const std::exception &) { // TODO(karsten1987): Windows CI doens't let me print the msg here // the todo is to forward the exception to the on_error callback - // fprintf(stderr, "Caught exception in callback for transition %d\n", - // it->first); - // fprintf(stderr, "Original error msg: %s\n", e.what()); + // RCUTILS_LOG_ERROR("Caught exception in callback for transition %d\n", + // it->first) + // RCUTILS_LOG_ERROR("Original error msg: %s\n", e.what()) // maybe directly go for error handling here // and pass exception along with it cb_success = lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_ERROR;