Skip to content

Commit e7e63af

Browse files
authored
Fixing Hardware components logging spam in tests (#2692)
1 parent ffa4a00 commit e7e63af

3 files changed

Lines changed: 105 additions & 37 deletions

File tree

hardware_interface/src/hardware_component_interface.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,7 @@ CallbackReturn HardwareComponentInterface::init(
157157
}
158158
}
159159

160-
if (publish_rate == 0.0)
161-
{
162-
RCLCPP_INFO(
163-
get_logger(),
164-
"`status_publish_rate` is set to 0.0, hardware status publisher will not be created.");
165-
}
166-
else
160+
if (publish_rate > 0.0)
167161
{
168162
control_msgs::msg::HardwareStatus status_msg_template;
169163
if (init_hardware_status_message(status_msg_template) != CallbackReturn::SUCCESS)

0 commit comments

Comments
 (0)