Skip to content

Commit

Permalink
Merge pull request #448 from husarion/ros2-battery-warn
Browse files Browse the repository at this point in the history
change error to warn
  • Loading branch information
miloszlagan authored Nov 29, 2024
2 parents c308444 + 5ff7a67 commit bfaa42c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}

Expand Down

0 comments on commit bfaa42c

Please sign in to comment.