add exception handling for rebootDeviceCallback and downgrade expected errors to WARN

This commit is contained in:
obyalian
2025-09-28 10:11:32 +08:00
parent 1ab5000086
commit 820f1b999e
2 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -972,7 +972,7 @@ void OBCameraNode::stopStreams() {
try {
pipeline_->stop();
} catch (const ob::Error &e) {
RCLCPP_ERROR_STREAM(logger_, "Failed to stop pipeline: " << e.getMessage());
RCLCPP_WARN_STREAM(logger_, "Failed to stop pipeline: " << e.getMessage());
} catch (...) {
RCLCPP_ERROR_STREAM(logger_, "Failed to stop pipeline");
}