Skip to content

Commit

Permalink
Suppress confusing error logs in carma_record (#2456)
Browse files Browse the repository at this point in the history
* Suppress confusing error logs in carma_record

* Update CarmaRecordNode.cpp
  • Loading branch information
MishkaMN authored Nov 5, 2024
1 parent 0a5689b commit 8fe7494
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions carma_record/src/CarmaRecordNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,12 @@ int CarmaRecordNode::run() const
} else {
cnh_.setParam("no_exclusions", false);
}
// No need to spin here, but it prevents ros1_bridge from continuously
// printing error logs about failing to connect
// to this node's services indefinitely which is confusing to many users
ros::spin();

// End node because there is no need to spin
return 0;
}

} // namespace carma_record
} // namespace carma_record

0 comments on commit 8fe7494

Please sign in to comment.