diff --git a/husarion_ugv_battery/src/battery_publisher/battery_publisher.cpp b/husarion_ugv_battery/src/battery_publisher/battery_publisher.cpp index 6f2ef8701..4f2e9c716 100644 --- a/husarion_ugv_battery/src/battery_publisher/battery_publisher.cpp +++ b/husarion_ugv_battery/src/battery_publisher/battery_publisher.cpp @@ -49,12 +49,12 @@ void BatteryPublisher::Publish() this->Update(); last_battery_info_time_ = GetClock()->now(); } catch (const std::runtime_error & e) { - RCLCPP_ERROR_STREAM_THROTTLE( + RCLCPP_WARN_STREAM_THROTTLE( GetLogger(), *GetClock(), 1000, "An exception occurred while reading battery data: " << e.what()); diagnostic_updater_->broadcast( - diagnostic_msgs::msg::DiagnosticStatus::ERROR, + diagnostic_msgs::msg::DiagnosticStatus::WARN, "Error reading battery data: " + std::string(e.what())); }