Skip to content

Commit

Permalink
Tweak logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Jun 29, 2020
1 parent cc64e68 commit e5e9eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh-router/src/runtime/orchestrator.rs
Expand Up @@ -359,15 +359,15 @@ impl SessionOrchestrator {
let mut rbuf = RBuf::from(&buf[..n]);
log::trace!("Received UDP datagram {}", rbuf);
if let Ok(msg) = rbuf.read_session_message() {
log::debug!("Received {:?}", msg);
log::trace!("Received {:?}", msg);
if let SessionBody::Scout{what, pid_replies, ..} = msg.get_body() {
let what = what.or(Some(whatami::BROKER)).unwrap();
if what & self.whatami != 0 {
let mut wbuf = WBuf::new(8, false);
let pid = if *pid_replies { Some(self.manager.pid()) } else { None };
let hello = SessionMessage::make_hello( pid, Some(self.whatami),
Some(self.get_local_locators().await.clone()), None);
log::debug!("Send {:?} to {}", hello, peer);
log::trace!("Send {:?} to {}", hello, peer);
wbuf.write_session_message(&hello);
if let Err(err) = ucast_socket.send_to(&RBuf::from(&wbuf).to_vec(), peer).await {
log::error!("Unable to send {:?} to {} : {:?}", hello, peer, err);
Expand Down

0 comments on commit e5e9eeb

Please sign in to comment.