Skip to content

Commit b41655b

Browse files
author
Mauro Passerino
committed
Add log when ring buffer is full
1 parent 8ec8591 commit b41655b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rclcpp/include/rclcpp/experimental/buffers/ring_buffer_implementation.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
7373
ring_buffer_[write_index_] = std::move(request);
7474

7575
if (is_full_()) {
76+
RCLCPP_ERROR(rclcpp::get_logger("rclcpp"), "Ring buffer is full! Buffer capacity: %d", capacity_);
7677
read_index_ = next_(read_index_);
7778
} else {
7879
size_++;

0 commit comments

Comments
 (0)