print more clean log

This commit is contained in:
Joe Dong
2023-09-11 18:34:11 +08:00
parent a95389721b
commit c9f89aa453
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -193,7 +193,8 @@ void OBCameraNode::setupProfiles() {
default_profile =
profiles->getVideoStreamProfile(width_[elem], height_[elem], format_[elem]);
} catch (const ob::Error &ex) {
RCLCPP_ERROR_STREAM(logger_, "Failed to get profile: " << ex.getMessage());
RCLCPP_ERROR_STREAM(
logger_, "Failed to get " << stream_name_[elem] << " << profile: " << ex.getMessage());
RCLCPP_ERROR_STREAM(
logger_, "Stream: " << magic_enum::enum_name(elem.first)
<< ", Stream Index: " << elem.second << ", Width: " << width_[elem]