Skip to content

Commit

Permalink
Update LoggerInterceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Feb 16, 2024
1 parent 9006539 commit b4564a2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions zenoh/src/net/routing/interceptor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl InterceptorTrait for IngressMsgLogger {
.or_else(|| ctx.full_expr());

log::debug!(
"Recv {} {} Expr:{:?}",
"{} Recv {} Expr:{:?}",
ctx.inface()
.map(|f| f.to_string())
.unwrap_or("None".to_string()),
Expand All @@ -158,7 +158,14 @@ impl InterceptorTrait for EgressMsgLogger {
let expr = cache
.and_then(|i| i.downcast_ref::<String>().map(|e| e.as_str()))
.or_else(|| ctx.full_expr());
log::debug!("Send {} Expr:{:?}", ctx.msg, expr);
log::debug!(
"{} Send {} Expr:{:?}",
ctx.outface()
.map(|f| f.to_string())
.unwrap_or("None".to_string()),
ctx.msg,
expr
);
Some(ctx)
}
}
Expand Down

0 comments on commit b4564a2

Please sign in to comment.