Skip to content

Commit

Permalink
dataflow: add log message when connection init fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Soetens committed Nov 26, 2009
1 parent a58e58c commit 3ff9037
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OutputPort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ namespace RTT
if ( policy.init )
return channel_el_input->write(sample);
return true;
} else
} else {
Logger::In in("OutputPort");
log(Error) << "Failed to pass data sample to data channel. Aborting connection."<<endlog();
return false;
}
}
}
// even if we're not written, test the connection with a default sample.
Expand Down

0 comments on commit 3ff9037

Please sign in to comment.