fix: enhance error logging by formatting error messages with status

This commit is contained in:
ob-yalian
2026-05-29 09:59:03 +08:00
parent 4005d4accf
commit ba7184e96d
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -1086,8 +1086,8 @@ void OBCameraNodeDriver::initializeDevice(const std::shared_ptr<ob::Device> &dev
}
} catch (ob::Error &e) {
// Some devices don't support ISP firmware version query
RCLCPP_DEBUG_STREAM(
logger_, "Current device not support ISP firmware version query: " << e.getMessage());
RCLCPP_DEBUG_STREAM(logger_, "Current device not support ISP firmware version query: "
<< orbbec_camera::formatObErrorWithStatus(e));
}
RCLCPP_INFO_STREAM(logger_, "usb connect type: " << device_info_->getConnectionType());
});