Skip to content

Commit

Permalink
Add some debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelovuo committed Sep 15, 2023
1 parent 1fca572 commit 898ad3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dds/participant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,8 @@ impl DomainParticipantInner {
})?;

info!(
"New DomainParticipantInner: domain_id={:?} participant_id={:?} GUID={:?}",
domain_id, participant_id, participant_guid
"New DomainParticipantInner: domain_id={:?} participant_id={:?} GUID={:?} security={}",
domain_id, participant_id, participant_guid, cfg!(security)
);

Ok(Self {
Expand Down
6 changes: 5 additions & 1 deletion src/discovery/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,13 +681,17 @@ impl Discovery {

loop {
let mut events = Events::with_capacity(32); // Should this be outside of the loop?
match self.poll.poll(&mut events, None) {
match self.poll.poll(&mut events, Some(std::time::Duration::from_millis(5000))) {
Ok(_) => (),
Err(e) => {
error!("Failed in waiting of poll in discovery. {e:?}");
return;
}
}
if events.is_empty() {
debug!("Discovery event loop idling.");
}


for event in events.into_iter() {
match event.token() {
Expand Down

0 comments on commit 898ad3d

Please sign in to comment.