Connecting: add another ROS_DEBUG hint

These can facilitate debugging a lot for little overhead.
This commit is contained in:
v4hn 2021-09-01 23:12:50 +02:00 committed by Michael Görner
parent 40b00c61d2
commit 1e10aaccfd

View File

@ -123,10 +123,15 @@ void ContainerBasePrivate::onNewFailure(const Stage& child, const InterfaceState
case CONNECT:
if (const Connecting* conn = dynamic_cast<const Connecting*>(&child)) {
auto cimpl = conn->pimpl();
if (!cimpl->hasPendingOpposites<Interface::FORWARD>(from))
ROS_DEBUG_STREAM_NAMED("Connecting", "'" << child.name() << "' generated a failure");
if (!cimpl->hasPendingOpposites<Interface::FORWARD>(from)) {
ROS_DEBUG_STREAM_NAMED("Connecting", "prune backward branch");
setStatus<Interface::BACKWARD>(from, InterfaceState::Status::FAILED);
if (!cimpl->hasPendingOpposites<Interface::BACKWARD>(to))
}
if (!cimpl->hasPendingOpposites<Interface::BACKWARD>(to)) {
ROS_DEBUG_STREAM_NAMED("Connecting", "prune forward branch");
setStatus<Interface::FORWARD>(to, InterfaceState::Status::FAILED);
}
}
break;
}