Skip to content

Commit

Permalink
feat: add logging when loading nodes
Browse files Browse the repository at this point in the history
* zenoh-flow-runtime/src/runtime/load.rs: add logging information
  when loading a source, operator, sink.

Signed-off-by: Julien Loudet <[email protected]>
  • Loading branch information
J-Loudet committed May 24, 2024
1 parent 0f0e81c commit db2d477
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zenoh-flow-runtime/src/runtime/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ The problematic link is:
.iter()
.filter(|(_, operator)| assigned_nodes.contains(&operator.id))
{
tracing::debug!("Loading operator: {operator_id}");

let (inputs, outputs) = channels.remove(operator_id).context(format!(
r#"
Zenoh-Flow encountered a fatal internal error.
Expand Down Expand Up @@ -320,6 +322,8 @@ The channels for the Inputs and Outputs of Operator < {} > were not created.
.iter()
.filter(|(_, source)| assigned_nodes.contains(&source.id))
{
tracing::debug!("Loading source: {source_id}");

let (_, outputs) = channels.remove(source_id).context(format!(
r#"
Zenoh-Flow encountered a fatal internal error.
Expand Down Expand Up @@ -399,6 +403,8 @@ Maybe change the features in the Cargo.toml?
.iter()
.filter(|(_, sink)| assigned_nodes.contains(&sink.id))
{
tracing::debug!("Loading sink: {sink_id}");

let (inputs, _) = channels.remove(sink_id).context(format!(
r#"
Zenoh-Flow encountered a fatal internal error.
Expand Down

0 comments on commit db2d477

Please sign in to comment.